mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-05-19 14:21:16 -04:00
Add check for artistImageUrl for cover art
This commit is contained in:
@@ -114,7 +114,15 @@ const authParams = {
|
||||
};
|
||||
|
||||
const getCoverArtUrl = (item: any, useLegacyAuth: boolean, size = 150) => {
|
||||
if (!item.coverArt) {
|
||||
if (!item.coverArt && !item.artistImageUrl) {
|
||||
return 'img/placeholder.jpg';
|
||||
}
|
||||
|
||||
if (!item.coverArt && !item.artistImageUrl?.match('2a96cbd8b46e442fc41c2b86b821562f')) {
|
||||
return item.artistImageUrl;
|
||||
}
|
||||
|
||||
if (item.artistImageUrl?.match('2a96cbd8b46e442fc41c2b86b821562f')) {
|
||||
return 'img/placeholder.jpg';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user