Skip to content

Commit

Permalink
Merge pull request xbmc#16939 from ksooo/pvr-fix-recordings-folders-c…
Browse files Browse the repository at this point in the history
…ontext-menu

[PVR] Fix missing 'mark watched'/'mark unwatched' context menu entries for recordings folders.
  • Loading branch information
ksooo authored and Maven85 committed Jan 21, 2020
1 parent 273c100 commit c1b2e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/video/ContextMenus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bool CMarkWatched::IsVisible(const CFileItem& item) const
else if (item.GetProperty("IsVideoFolder").asBoolean())
return true;
else
return URIUtils::IsPVRRecording(item.GetPath());
return StringUtils::StartsWith(item.GetPath(), "pvr://recordings/");
}
else if (!item.HasVideoInfoTag())
return false;
Expand All @@ -91,7 +91,7 @@ bool CMarkUnWatched::IsVisible(const CFileItem& item) const
else if (item.GetProperty("IsVideoFolder").asBoolean())
return true;
else
return URIUtils::IsPVRRecording(item.GetPath());
return StringUtils::StartsWith(item.GetPath(), "pvr://recordings/");
}
else if (!item.HasVideoInfoTag())
return false;
Expand Down

0 comments on commit c1b2e9e

Please sign in to comment.