From 6c02f3f174d1af5813865845b34d14061b4acf18 Mon Sep 17 00:00:00 2001 From: CrystalP Date: Sun, 4 Feb 2024 18:13:29 -0500 Subject: [video] fill GUIListItem properties with streamdetails for the hybrid movie/folder items --- xbmc/video/VideoManagerTypes.h | 3 +++ xbmc/video/VideoThumbLoader.cpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/xbmc/video/VideoManagerTypes.h b/xbmc/video/VideoManagerTypes.h index ab41d512ce..f6dce459d9 100644 --- a/xbmc/video/VideoManagerTypes.h +++ b/xbmc/video/VideoManagerTypes.h @@ -8,6 +8,8 @@ #pragma once +#include + enum class VideoAssetTypeOwner { UNKNOWN = -1, @@ -33,6 +35,7 @@ static constexpr int VIDEO_VERSION_ID_BEGIN = 40400; static constexpr int VIDEO_VERSION_ID_END = 40800; static constexpr int VIDEO_VERSION_ID_DEFAULT = VIDEO_VERSION_ID_BEGIN; static constexpr int VIDEO_VERSION_ID_ALL = 0; +static const std::string VIDEODB_PATH_VERSION_ID_ALL{"videodb://movies/videoversions/0"}; struct VideoAssetInfo { diff --git a/xbmc/video/VideoThumbLoader.cpp b/xbmc/video/VideoThumbLoader.cpp index dac3b7b294..1cb634ac2e 100644 --- a/xbmc/video/VideoThumbLoader.cpp +++ b/xbmc/video/VideoThumbLoader.cpp @@ -559,7 +559,9 @@ std::string CVideoThumbLoader::GetEmbeddedThumbURL(const CFileItem &item) void CVideoThumbLoader::DetectAndAddMissingItemData(CFileItem &item) { - if (item.m_bIsFolder) return; + // @todo remove exception for hybrid movie/folder of versions + if (item.m_bIsFolder && !StringUtils::StartsWith(item.GetPath(), VIDEODB_PATH_VERSION_ID_ALL)) + return; if (item.HasVideoInfoTag()) { -- cgit v1.2.3