Skip to content
This repository has been archived by the owner on Apr 15, 2023. 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.
  • Loading branch information
Jonathan Marshall committed Feb 14, 2011
1 parent ff3fc8e commit 34a667e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xbmc/video/VideoInfoScanner.cpp
Expand Up @@ -1115,15 +1115,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 34a667e

Please sign in to comment.