Skip to content
This repository
Browse code

fixed: Different (file) items with the same artist/album name could o…

…verwrite art with empty ones (fixes ticket #13588)
  • Loading branch information...
commit 2d0213100955c9a615bfc03ef9478e62ff4e67f2 1 parent 4bf192d
authored November 22, 2012
6  xbmc/music/infoscanner/MusicInfoScanner.cpp
@@ -762,7 +762,8 @@ void CMusicInfoScanner::FindArtForAlbums(VECALBUMS &albums, const CStdString &pa
762 762
   {
763 763
     CFileItem album(path, true);
764 764
     albumArt = album.GetUserMusicThumb(true);
765  
-    albums[0].art["thumb"] = albumArt;
  765
+    if (!albumArt.empty())
  766
+      albums[0].art["thumb"] = albumArt;
766 767
   }
767 768
   for (VECALBUMS::iterator i = albums.begin(); i != albums.end(); ++i)
768 769
   {
@@ -806,7 +807,8 @@ void CMusicInfoScanner::FindArtForAlbums(VECALBUMS &albums, const CStdString &pa
806 807
         albumArt = CTextureCache::GetWrappedImageURL(art->strFileName, "music");
807 808
     }
808 809
 
809  
-    album.art["thumb"] = albumArt;
  810
+    if (!albumArt.empty())
  811
+      album.art["thumb"] = albumArt;
810 812
 
811 813
     if (singleArt)
812 814
     { //if singleArt then we can clear the artwork for all songs

0 notes on commit 2d02131

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