Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
fixed: Scanning episodes which had a local fanart.jpg would result in…
Browse files Browse the repository at this point in the history
… the image being cached for each item.

(cherry picked from commit 34a667e)
  • Loading branch information
Jonathan Marshall authored and theuni committed Feb 15, 2011
1 parent a1f3449 commit b56bfa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xbmc/VideoInfoScanner.cpp
Expand Up @@ -1004,15 +1004,16 @@ namespace VIDEO
{
CVideoInfoTag &movieDetails = *pItem->GetVideoInfoTag();
// get & save fanart image
if (!useLocal || !pItem->CacheLocalFanart())
bool isEpisode = (content == CONTENT_TVSHOWS && !pItem->m_bIsFolder);
if (!isEpisode && (!useLocal || !pItem->CacheLocalFanart()))
{
if (movieDetails.m_fanart.GetNumFanarts())
DownloadImage(movieDetails.m_fanart.GetImageURL(), pItem->GetCachedFanart(), false, pDialog);
}

// get & save thumb image
CStdString cachedThumb = pItem->GetCachedVideoThumb();
if (content == CONTENT_TVSHOWS && !pItem->m_bIsFolder && CFile::Exists(cachedThumb))
if (isEpisode && CFile::Exists(cachedThumb))
{ // have an episode (??? and also a normal "cached" thumb that we're going to override now???)
movieDetails.m_strFileNameAndPath = pItem->m_strPath;
CFileItem item(movieDetails);
Expand Down

0 comments on commit b56bfa7

Please sign in to comment.