Skip to content
Browse files

[art] cleanup - no need for convoluted resetting of thumb now that it…

…'s just a fallback
  • Loading branch information...
1 parent 215474f commit f6ade12d4e13782461cc45964f28c04b4af95743 Jonathan Marshall committed Nov 10, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 xbmc/video/dialogs/GUIDialogVideoInfo.cpp
View
10 xbmc/video/dialogs/GUIDialogVideoInfo.cpp
@@ -733,15 +733,7 @@ void CGUIDialogVideoInfo::OnGetArt()
db.Close();
}
CUtil::DeleteVideoDatabaseDirectoryCache(); // to get them new thumbs to show
- // update the art - we need to call the map version of SetArt to force
- // the thumb image to update in the case it's a fallback image
- map<string, string> itemArt(m_movieItem->GetArt());
- if (currentArt.find("thumb") == currentArt.end())
- { // no "thumb" image, so make sure we reset the thumb fallback
- itemArt.erase("thumb");
- }
- itemArt[type] = newThumb;
- m_movieItem->SetArt(itemArt);
+ m_movieItem->SetArt(type, newThumb);
if (m_movieItem->HasProperty("set_folder_thumb"))
{ // have a folder thumb to set as well
VIDEO::CVideoInfoScanner::ApplyThumbToFolder(m_movieItem->GetProperty("set_folder_thumb").asString(), newThumb);

0 comments on commit f6ade12

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