Skip to content

Commit

Permalink
fixed: local fanart not properly cached when using .nfo files (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
mkortstiege committed Dec 30, 2011
1 parent 75102f9 commit 397cafa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xbmc/video/VideoInfoScanner.cpp
Expand Up @@ -1020,6 +1020,11 @@ namespace VIDEO
movieDetails.m_basePath = pItem->GetBaseMoviePath(videoFolder);
movieDetails.m_parentPathID = m_database.AddPath(URIUtils::GetParentPath(movieDetails.m_basePath));

movieDetails.m_strFileNameAndPath = pItem->GetPath();

if (pItem->m_bIsFolder)
movieDetails.m_strPath = pItem->GetPath();

CStdString strTitle(movieDetails.m_strTitle);

if (idShow > -1 && content == CONTENT_TVSHOWS)
Expand Down Expand Up @@ -1489,14 +1494,9 @@ namespace VIDEO
bool CVideoInfoScanner::GetDetails(CFileItem *pItem, CScraperUrl &url, const ScraperPtr& scraper, CNfoFile *nfoFile, CGUIDialogProgress* pDialog /* = NULL */)
{
CVideoInfoTag movieDetails;
movieDetails.m_strFileNameAndPath = pItem->GetPath();

CVideoInfoDownloader imdb(scraper);
bool ret = imdb.GetDetails(url, movieDetails, pDialog);
if (pItem->m_bIsFolder)
movieDetails.m_strPath = pItem->GetPath();
else
movieDetails.m_strFileNameAndPath = pItem->GetPath();

if (ret)
{
Expand Down

0 comments on commit 397cafa

Please sign in to comment.