Update encoding
This commit is contained in:
parent
d37db84faf
commit
79db89f932
@ -115,6 +115,8 @@ class Downloader
|
|||||||
|
|
||||||
|
|
||||||
$artist = str_replace( array( '#ARTIST:', '/' ), array( '', '-' ), strtok( $out, "\n" ) );
|
$artist = str_replace( array( '#ARTIST:', '/' ), array( '', '-' ), strtok( $out, "\n" ) );
|
||||||
|
$artist = str_replace( array( "ö", "ä", "ü" ), array( "oe", "ae", "ue" ), $artist );
|
||||||
|
|
||||||
//echo $artist;
|
//echo $artist;
|
||||||
$artistes = preg_replace( '/[^a-zA-Z0-9\ \-]/', "", $artist );
|
$artistes = preg_replace( '/[^a-zA-Z0-9\ \-]/', "", $artist );
|
||||||
|
|
||||||
@ -123,7 +125,7 @@ class Downloader
|
|||||||
//echo "\ns$title\n";
|
//echo "\ns$title\n";
|
||||||
$title = preg_replace( '/[^a-zA-Z0-9\ \-]/', '', $title );
|
$title = preg_replace( '/[^a-zA-Z0-9\ \-]/', '', $title );
|
||||||
//echo "\n$title\n";
|
//echo "\n$title\n";
|
||||||
|
$title = str_replace( array( "ö", "ä", "ü" ), array( "oe", "ae", "ue" ), $title );
|
||||||
|
|
||||||
echo "[INFO] Found $artist - $title\n";
|
echo "[INFO] Found $artist - $title\n";
|
||||||
if( is_dir( DOWNLOAD_PATH . '/' . $artist . '/' ) === false )
|
if( is_dir( DOWNLOAD_PATH . '/' . $artist . '/' ) === false )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user