Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1822 from arnova/album_thumb_fix

fixed: Different (file) items with the same artist/album name could over...
  • Loading branch information...
commit 9fe57ce08118b55471231d91ebbafa870ff5cee8 2 parents 3c166c8 + 2d02131
@jmarshallnz jmarshallnz authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 xbmc/music/infoscanner/MusicInfoScanner.cpp
View
6 xbmc/music/infoscanner/MusicInfoScanner.cpp
@@ -757,7 +757,8 @@ void CMusicInfoScanner::FindArtForAlbums(VECALBUMS &albums, const CStdString &pa
{
CFileItem album(path, true);
albumArt = album.GetUserMusicThumb(true);
- albums[0].art["thumb"] = albumArt;
+ if (!albumArt.empty())
+ albums[0].art["thumb"] = albumArt;
}
for (VECALBUMS::iterator i = albums.begin(); i != albums.end(); ++i)
{
@@ -801,7 +802,8 @@ void CMusicInfoScanner::FindArtForAlbums(VECALBUMS &albums, const CStdString &pa
albumArt = CTextureCache::GetWrappedImageURL(art->strFileName, "music");
}
- album.art["thumb"] = albumArt;
+ if (!albumArt.empty())
+ album.art["thumb"] = albumArt;
if (singleArt)
{ //if singleArt then we can clear the artwork for all songs
Please sign in to comment.
Something went wrong with that request. Please try again.