New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PVR][video] Consolidate implementation of "Play", "Mark watched", "Mark unwatched", "Resume from" context menu items #11115
Conversation
jenkins build this please |
@Jalle19 any comments? I know it's pain to read the large diff, but that's why i split it up into multiple commits. ;-) Stuff is well runtime tested for some time now, btw. Like always I use my family members as beta testers in the living room. No complaints so far. ;-) |
Sorry, missed this one. |
e77caa2
to
0594f40
Compare
if (channel) | ||
return CFileItem(channel); | ||
} | ||
return CFileItem(*this); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
…t that CPVRRecording is derived from CVideoInfoTag
…, it physically is in xbmc/video, not xbmc/video/windows
…e from' implementations.
0594f40
to
6e67bec
Compare
jenkins build this please |
Jenkins macOS error is not related to this PR. make: *** [/Users/Shared/jenkins/workspace/OSX-64/tools/depends/pre-depends/autoconf-pre-depends/../../pre-build-deps/autoconf-2.68.tar.gz] Error 7 autoconf was not found and could not be built. Aborting. |
Both video files and pvr recordings have similar context menu items, like "Play", "Mark watched", "Mark unwatched" and "Resume from". For historical reasons, there are different implementations for these menu items, although lots of code could be shared.
After #10870 got merged it is now possible to consolidate these implementations. This PR does exactly this. :-) A bunch of code refactoring needed as prerequisite for this is also included here.
A nice visual side effect of these changes is that now "Resume" and "Play" for PVR recordings appear at the topmost positions in the context menu. This has been requested by or users for several times.
The code was runtime-tested on Linux an macOS, latest master.
@Jalle19 for review?