From 90ee8ebd58b56d3fa10aacf6dbb98e416b7ce18a Mon Sep 17 00:00:00 2001 From: enen92 <92enen@gmail.com> Date: Wed, 21 Feb 2024 10:24:18 +0000 Subject: [PATCH] [plugins] Ignore fileaction (play) if item is not playable... --- xbmc/video/windows/GUIWindowVideoBase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp index 2d1e033a35f6e..26a17697906d8 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);