diff options
author | Miguel Borges de Freitas <92enen@gmail.com> | 2024-02-21 23:40:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-21 23:40:07 +0000 |
commit | 480476cb59264f54d0c85da2529d2bd64a4874ad (patch) | |
tree | 2034920c5f7ee3b10968cabebf6fe491e6e6303b | |
parent | e085b62f103a3714a0efcc8ead1bd498bb92fcdd (diff) | |
parent | 90ee8ebd58b56d3fa10aacf6dbb98e416b7ce18a (diff) |
Merge pull request #24743 from enen92/play_action_plugin
[plugins] Ignore fileaction (play) if item is not playable...
-rw-r--r-- | xbmc/video/windows/GUIWindowVideoBase.cpp | 4 |
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); |