[pvr] Season and episode sorting for PVR recordings #20790
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds a sort method based on season and episode to PVR recordings. Thanks @ksooo who provided the solution, just testing on my part ;)
Note that there is a bug in the GUI refresh of the secondary sort method (datetime) when it is changed in the UI which needs to be solved separately to this PR. #20792
Motivation and context
There is currently no sort method based on season and episode for PVR recordings, this PR adds one. This has been discussed on the forum: https://forum.kodi.tv/showthread.php?tid=353273.
While this can be thought of as a feature, it is also a bug as it forces PVR add-ons to workaround this:
With this sort method in place, the workarounds can be removed in the add-ons leaving any display semantics to the skin as it should be.
How has this been tested?
OSX Monterrey using
pvr.vuplus
.What is the effect on users?
Screenshots (if appropriate):
With new sort method, note that the season/episode in the title string is handled by the skin:
Types of change
Checklist: