Skip to content
Browse files

cache season thumbs outside of GetSeasonThumbs so it can be re-used

  • Loading branch information...
1 parent 7e109e4 commit 4026f964d73c192fde4da51311ddf16f09cfbb68 Jonathan Marshall committed Oct 13, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 xbmc/video/VideoInfoScanner.cpp
View
7 xbmc/video/VideoInfoScanner.cpp
@@ -1097,9 +1097,11 @@ namespace VIDEO
{
if (pItem->m_bIsFolder)
{
- // get season thumbs
+ // get and cache season thumbs
map<int, string> seasonArt;
GetSeasonThumbs(movieDetails, seasonArt);
+ for (map<int, string>::iterator i = seasonArt.begin(); i != seasonArt.end(); ++i)
+ CTextureCache::Get().BackgroundCacheImage(i->second);
lResult = m_database.SetDetailsForTvShow(pItem->GetPath(), movieDetails, art, seasonArt);
movieDetails.m_iDbId = lResult;
movieDetails.m_type = "tvshow";
@@ -1640,9 +1642,6 @@ namespace VIDEO
}
}
}
- // cache them
- for (map<int, string>::iterator i = art.begin(); i != art.end(); ++i)
- CTextureCache::Get().BackgroundCacheImage(i->second);
}
void CVideoInfoScanner::FetchActorThumbs(vector<SActorInfo>& actors, const CStdString& strPath)

0 comments on commit 4026f96

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