Skip to content

Commit

Permalink
Merge pull request xbmc#24645 from CrystalP/fix-parentmovie-properties
Browse files Browse the repository at this point in the history
[video] fill GUIListItem properties with streamdetails for the hybrid…
  • Loading branch information
CrystalP committed Feb 6, 2024
2 parents 827936d + 6c02f3f commit ca059b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions xbmc/video/VideoManagerTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#pragma once

#include <string>

enum class VideoAssetTypeOwner
{
UNKNOWN = -1,
Expand All @@ -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
{
Expand Down
4 changes: 3 additions & 1 deletion xbmc/video/VideoThumbLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit ca059b3

Please sign in to comment.