@@ -163,12 +163,15 @@ QString AlbumCoverLoader::CoverFilenameFromSource(const Song::Source source, con
|
|||||||
|
|
||||||
switch (source) {
|
switch (source) {
|
||||||
case Song::Source_Tidal:
|
case Song::Source_Tidal:
|
||||||
filename = album_id + "-" + cover_url.fileName();
|
if (!album_id.isEmpty()) {
|
||||||
break;
|
filename = album_id + "-" + cover_url.fileName();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// fallthrough
|
||||||
case Song::Source_Subsonic:
|
case Song::Source_Subsonic:
|
||||||
case Song::Source_Qobuz:
|
case Song::Source_Qobuz:
|
||||||
filename = AlbumCoverFilename(artist, album);
|
if (!album_id.isEmpty()) {
|
||||||
if (filename.length() > 8 && (filename.length() - 5) >= (artist.length() + album.length() - 2)) {
|
filename = album_id + ".jpg";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// fallthrough
|
// fallthrough
|
||||||
|
|||||||
Reference in New Issue
Block a user