fix stupid apple naming
This commit is contained in:
parent
edfd5886eb
commit
1c5c6fa344
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user