1
0

fix stupid apple naming

This commit is contained in:
anon 2024-10-26 17:44:08 +02:00
parent edfd5886eb
commit 1c5c6fa344

View File

@ -458,6 +458,18 @@ class ScrobbleHandler {
} }
public function fetch_and_save_album_cover($artist_name, $album_name) { public function fetch_and_save_album_cover($artist_name, $album_name) {
$album_exceptions = [
'Dios' => [
'Gasoline EP' => 'Gasoline EP - EP'
]
];
// Check if there's an exception for this artist and album
if (isset($album_exceptions[$artist_name]) &&
isset($album_exceptions[$artist_name][$album_name])) {
$album_name = $album_exceptions[$artist_name][$album_name];
}
// Encode the artist and album name for the URL // Encode the artist and album name for the URL
$search_term = urlencode($artist_name . ' ' . $album_name); $search_term = urlencode($artist_name . ' ' . $album_name);