From 79db89f932ca92ff95918ba353056ed5bbdd6e67 Mon Sep 17 00:00:00 2001 From: Tobias Hopp Date: Thu, 31 Dec 2020 20:29:44 +0100 Subject: [PATCH] Update encoding --- Downloader.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Downloader.php b/Downloader.php index c83d4a2..0721f18 100644 --- a/Downloader.php +++ b/Downloader.php @@ -115,6 +115,8 @@ class Downloader $artist = str_replace( array( '#ARTIST:', '/' ), array( '', '-' ), strtok( $out, "\n" ) ); + $artist = str_replace( array( "ö", "ä", "ü" ), array( "oe", "ae", "ue" ), $artist ); + //echo $artist; $artistes = preg_replace( '/[^a-zA-Z0-9\ \-]/', "", $artist ); @@ -123,7 +125,7 @@ class Downloader //echo "\ns$title\n"; $title = preg_replace( '/[^a-zA-Z0-9\ \-]/', '', $title ); //echo "\n$title\n"; - + $title = str_replace( array( "ö", "ä", "ü" ), array( "oe", "ae", "ue" ), $title ); echo "[INFO] Found $artist - $title\n"; if( is_dir( DOWNLOAD_PATH . '/' . $artist . '/' ) === false )