aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenen92 <92enen@gmail.com>2024-02-21 10:24:18 +0000
committerenen92 <92enen@gmail.com>2024-02-21 10:24:34 +0000
commit90ee8ebd58b56d3fa10aacf6dbb98e416b7ce18a (patch)
tree2034920c5f7ee3b10968cabebf6fe491e6e6303b
parente085b62f103a3714a0efcc8ead1bd498bb92fcdd (diff)
[plugins] Ignore fileaction (play) if item is not playable...
-rw-r--r--xbmc/video/windows/GUIWindowVideoBase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp
index 2d1e033a35..26a1769790 100644
--- a/xbmc/video/windows/GUIWindowVideoBase.cpp
+++ b/xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -544,7 +544,9 @@ bool CGUIWindowVideoBase::OnSelect(int iItem)
if (!item->m_bIsFolder && path != "add" &&
!StringUtils::StartsWith(path, "newsmartplaylist://") &&
!StringUtils::StartsWith(path, "newplaylist://") &&
- !StringUtils::StartsWith(path, "newtag://") && !StringUtils::StartsWith(path, "script://"))
+ !StringUtils::StartsWith(path, "newtag://") && !StringUtils::StartsWith(path, "script://") &&
+ !StringUtils::StartsWith(path, "plugin://") && !item->HasProperty("IsPlayable") &&
+ !item->GetProperty("IsPlayable").asBoolean())
return OnFileAction(iItem, CVideoSelectActionProcessorBase::GetDefaultSelectAction(), "");
return CGUIMediaWindow::OnSelect(iItem);