aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Kortstiege <mkortstiege@users.noreply.github.com>2015-03-09 10:06:04 +0100
committerMatthias Kortstiege <mkortstiege@users.noreply.github.com>2015-03-09 10:06:04 +0100
commit6251aa417b243c03c7d8ef482ea2657b4cbb0b18 (patch)
treeacd6dc03f00e957a90c96b0d8979baccde2f95a9
parent5a43e834fabdaf0414d69ef46709bfccadf389ed (diff)
parent3bdc8656f9f5f633fa5f2d752e053d514d839399 (diff)
Merge pull request #6615 from subnine/Helix
Index the entire collection's fanart when building the "fanart://Remote%i" strings
-rw-r--r--xbmc/video/dialogs/GUIDialogVideoInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp
index 02b42e8715..67430b4c2d 100644
--- a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp
+++ b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp
@@ -1917,6 +1917,7 @@ bool CGUIDialogVideoInfo::OnGetFanart(const CFileItemPtr &videoItem)
CStdString baseDir = StringUtils::Format("videodb://movies/sets/%d", videoItem->GetVideoInfoTag()->m_iDbId);
if (videodb.GetMoviesNav(baseDir, movies))
{
+ int iFanart = 0;
for (int i=0; i < movies.Size(); i++)
{
// ensure the fanart is unpacked
@@ -1925,7 +1926,7 @@ bool CGUIDialogVideoInfo::OnGetFanart(const CFileItemPtr &videoItem)
// Grab the thumbnails from the web
for (unsigned int j = 0; j < movies[i]->GetVideoInfoTag()->m_fanart.GetNumFanarts(); j++)
{
- CStdString strItemPath = StringUtils::Format("fanart://Remote%i",j);
+ CStdString strItemPath = StringUtils::Format("fanart://Remote%i",iFanart++);
CFileItemPtr item(new CFileItem(strItemPath, false));
CStdString thumb = movies[i]->GetVideoInfoTag()->m_fanart.GetPreviewURL(j);
item->SetArt("thumb", CTextureUtils::GetWrappedThumbURL(thumb));