Skip to content

Commit

Permalink
Merge pull request xbmc#24743 from enen92/play_action_plugin
Browse files Browse the repository at this point in the history
[plugins] Ignore fileaction (play) if item is not playable...
  • Loading branch information
enen92 authored Feb 21, 2024
2 parents e085b62 + 90ee8eb commit 480476c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/video/windows/GUIWindowVideoBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 480476c

Please sign in to comment.