aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2022-10-31 13:46:54 +0100
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2022-11-05 13:06:49 +0100
commit307ba577e512f6bf3e2377b2f64a49d1f5a87d1a (patch)
tree1f64c8122636e224270a7879cfdb5f3fffa16b4e
parentb81f2ba67f67762c3f59afa79995c3e4dbf29efc (diff)
[fileitem] Correctly set the 'canqueue' attribute for PVR items.
-rw-r--r--xbmc/FileItem.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp
index a11f35d6a5..27821aefc8 100644
--- a/xbmc/FileItem.cpp
+++ b/xbmc/FileItem.cpp
@@ -159,6 +159,7 @@ CFileItem::CFileItem(const std::shared_ptr<CPVREpgInfoTag>& tag)
m_bIsFolder = false;
m_epgInfoTag = tag;
m_strPath = tag->Path();
+ m_bCanQueue = false;
SetLabel(GetEpgTagTitle(tag));
m_dateTime = tag->StartAsLocalTime();
@@ -193,6 +194,7 @@ CFileItem::CFileItem(const std::shared_ptr<PVR::CPVREpgSearchFilter>& filter)
m_bIsFolder = true;
m_epgSearchFilter = filter;
m_strPath = filter->GetPath();
+ m_bCanQueue = false;
SetLabel(filter->GetTitle());
const CDateTime lastExec = filter->GetLastExecutedDateTime();
@@ -217,7 +219,7 @@ CFileItem::CFileItem(const std::shared_ptr<CPVRChannelGroupMember>& channelGroup
m_strPath = channelGroupMember->Path();
m_bIsFolder = false;
-
+ m_bCanQueue = false;
SetLabel(channel->ChannelName());
if (!channel->IconPath().empty())
@@ -252,6 +254,7 @@ CFileItem::CFileItem(const std::shared_ptr<CPVRRecording>& record)
SetLabel(record->m_strTitle);
m_dateTime = record->RecordingTimeAsLocalTime();
m_dwSize = record->GetSizeInBytes();
+ m_bCanQueue = true;
// Set art
if (!record->IconPath().empty())
@@ -288,6 +291,7 @@ CFileItem::CFileItem(const std::shared_ptr<CPVRTimerInfoTag>& timer)
m_strPath = timer->Path();
SetLabel(timer->Title());
m_dateTime = timer->StartAsLocalTime();
+ m_bCanQueue = false;
if (!timer->ChannelIcon().empty())
SetArt("icon", timer->ChannelIcon());