aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Marshall <jmarshall@never.you.mind>2012-12-19 17:01:31 +1300
committerJonathan Marshall <jmarshall@never.you.mind>2012-12-19 17:01:56 +1300
commit46e045e52dd85aa8d7b95474642cd585e2181dae (patch)
tree4b9a7f2702de2380f3aee79d7a5d7c4d01823a52
parentdcfa4782a5f66a94d34a365918f1e8ef57ea5337 (diff)
stacked movie thumbs weren't updated correctly (while stacked fanart was)
-rw-r--r--xbmc/utils/EdenVideoArtUpdater.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/xbmc/utils/EdenVideoArtUpdater.cpp b/xbmc/utils/EdenVideoArtUpdater.cpp
index aaa6b46b51..2940ceb6bb 100644
--- a/xbmc/utils/EdenVideoArtUpdater.cpp
+++ b/xbmc/utils/EdenVideoArtUpdater.cpp
@@ -37,6 +37,7 @@
#include "guilib/GUIWindowManager.h"
#include "guilib/LocalizeStrings.h"
#include "filesystem/File.h"
+#include "filesystem/StackDirectory.h"
#include "dialogs/GUIDialogExtendedProgressBar.h"
#include "interfaces/AnnouncementManager.h"
@@ -356,7 +357,12 @@ CStdString CEdenVideoArtUpdater::GetCachedVideoThumb(const CFileItem &item)
if (item.m_bIsFolder && !item.GetVideoInfoTag()->m_strPath.IsEmpty())
return GetThumb(item.GetVideoInfoTag()->m_strPath, g_settings.GetVideoThumbFolder(), true);
else if (!item.GetVideoInfoTag()->m_strFileNameAndPath.IsEmpty())
- return GetThumb(item.GetVideoInfoTag()->m_strFileNameAndPath, g_settings.GetVideoThumbFolder(), true);
+ {
+ CStdString path = item.GetVideoInfoTag()->m_strFileNameAndPath;
+ if (URIUtils::IsStack(path))
+ path = CStackDirectory::GetFirstStackedFile(path);
+ return GetThumb(path, g_settings.GetVideoThumbFolder(), true);
+ }
return GetThumb(item.GetPath(), g_settings.GetVideoThumbFolder(), true);
}