New Feature: PVR provider type along with support for NextPVR #955
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.
I decided to add in support for pvr software as a new provider type. I find it useful for less popular shows that aren't typically available via nzb or torrents - kids shows, cooking, news etc. Sick Beard now manages those recordings too. I put in the framework generically for a pvr provider type, although currently NextPVR is the only app supported.
In a nutshell - once per day this will check the EPG data from NextPVR via its REST interface and schedule any missing shows. Shows are not marked as snatched at this point. The code will attempt to pick a later recording date than the first air date (if multiples exist) to allow a download to occur since that is preferred. If the same show is downloaded, you have the option to have the scheduled recording cancelled if it hasn't recorded or deleted if it has. You also have a couple of options based upon channel number for determining if the recording will be SD/HD.
This is basically my first python code as well as my first github project, so hopefully I did all of this right. I've had the code running for about 2 months now and it's been very stable.
There's a little bit of additional info on configuration listed in the readme of the fork - https://github.com/kelliott72/Sick-Beard