Skip to content

Commit

Permalink
[plugins] Ignore fileaction (play) if item is not playable...
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Feb 21, 2024
1 parent e085b62 commit 90ee8eb
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 90ee8eb

Please sign in to comment.