Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
use pre-built function for getting path out of the infotag (thanks vd…
Browse files Browse the repository at this point in the history
…rfan)
  • Loading branch information
Jonathan Marshall committed Feb 1, 2012
1 parent 00e8a20 commit 6eed480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/ThumbnailCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ CStdString CThumbnailCache::GetFanart(const CFileItem &item)
}
return GetThumb(showPath,g_settings.GetVideoFanartFolder());
}
CStdString path = item.GetVideoInfoTag()->m_strFileNameAndPath.IsEmpty() ? item.GetVideoInfoTag()->m_strPath : item.GetVideoInfoTag()->m_strFileNameAndPath;
CStdString path = item.GetVideoInfoTag()->GetPath();
if (path.empty())
return "";
return GetThumb(path,g_settings.GetVideoFanartFolder());
Expand Down

0 comments on commit 6eed480

Please sign in to comment.