Permalink
Browse files

drop backward compatibility for artist art - a rescan of music is req…

…uired anyway, which will yield this moot
  • Loading branch information...
1 parent b51a768 commit de11980c8fd564966ed2d50e56fd482001143343 Jonathan Marshall committed Oct 13, 2012
Showing with 0 additions and 20 deletions.
  1. +0 −20 xbmc/music/MusicThumbLoader.cpp
@@ -119,26 +119,6 @@ bool CMusicThumbLoader::FillLibraryArt(CFileItem &item)
if (m_database->GetArtForItem(tag.GetAlbumId(), "album", artwork))
item.SetArt(artwork);
}
- else if (tag.GetType() == "artist")
- {
- { // Need the artist thumb/fanart which isn't grabbed during normal directory fetches
- CArtist artist;
- m_database->GetArtistInfo(tag.GetDatabaseId(), artist, false);
- CMusicInfoScanner scanner;
- artwork = scanner.GetArtistArtwork(tag.GetDatabaseId(), &artist);
- item.SetArt(artwork);
- }
- // add to the database for next time around
- map<string, string> artwork = item.GetArt();
- if (!artwork.empty())
- {
- m_database->SetArtForItem(tag.GetDatabaseId(), tag.GetType(), artwork);
- for (map<string, string>::iterator i = artwork.begin(); i != artwork.end(); ++i)
- CTextureCache::Get().BackgroundCacheImage(i->second);
- }
- else // nothing found - set an empty thumb so that next time around we don't hit here again
- m_database->SetArtForItem(tag.GetDatabaseId(), tag.GetType(), "thumb", "");
- }
if (tag.GetType() == "song" || tag.GetType() == "album")
{ // fanart from the artist
item.SetArt("fanart", m_database->GetArtistArtForItem(tag.GetDatabaseId(), tag.GetType(), "fanart"));

0 comments on commit de11980

Please sign in to comment.