Skip to content
This repository
Browse code

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 authored November 26, 2012
6  xbmc/music/infoscanner/MusicInfoScanner.cpp
@@ -757,7 +757,8 @@ void CMusicInfoScanner::FindArtForAlbums(VECALBUMS &albums, const CStdString &pa
757 757
   {
758 758
     CFileItem album(path, true);
759 759
     albumArt = album.GetUserMusicThumb(true);
760  
-    albums[0].art["thumb"] = albumArt;
  760
+    if (!albumArt.empty())
  761
+      albums[0].art["thumb"] = albumArt;
761 762
   }
762 763
   for (VECALBUMS::iterator i = albums.begin(); i != albums.end(); ++i)
763 764
   {
@@ -801,7 +802,8 @@ void CMusicInfoScanner::FindArtForAlbums(VECALBUMS &albums, const CStdString &pa
801 802
         albumArt = CTextureCache::GetWrappedImageURL(art->strFileName, "music");
802 803
     }
803 804
 
804  
-    album.art["thumb"] = albumArt;
  805
+    if (!albumArt.empty())
  806
+      album.art["thumb"] = albumArt;
805 807
 
806 808
     if (singleArt)
807 809
     { //if singleArt then we can clear the artwork for all songs

0 notes on commit 9fe57ce

Please sign in to comment.
Something went wrong with that request. Please try again.