Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
arnova authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 xbmc/music/infoscanner/MusicInfoScanner.cpp
View
6 xbmc/music/infoscanner/MusicInfoScanner.cpp
@@ -762,7 +762,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)
{
@@ -806,7 +807,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.