2020-05-27, 11:12 PM
I had an itch, so I scratched it. For years I have had a series of to-dos so I could keep track of new TV shows I wanted to record and then add recordings once episodes became available. I know I probably could do this using rules in some way to make recordings before stuff shows up in the EPG, but I tried that once in NextPVR and gave up. Nothing several hundred lines of code couldn't solve.
So, introducing TV Maze Integration. First, about TV Maze:
<https://tvmaze.com>
And the script is at:
<https://github.com/pkscout/tvmaze.integration/releases>
There's a wiki page with usage instructions, but basically there are two ways you can use this.
1. The free way you get a list of TV Maze IDs and pass them to the script from the command line. The script will check each show, see if there is an upcoming episode in the EPG, and setup a recurring recording (by default All New Episodes, but you can change that).
2. The paid way (annual subscription to TV Maze) lets you either use your followed shows as the source to try and record or (and this is the one I use), tag shows you want to record and then use that as the source list. If you do the tags, the script will untag the show once a recurring recording has been set (can change that behavior in settings). So I tag new shows with a "New Shows" tag, then run the script via PostUpdateEPG every night to see if a recording can be set up.
The script also let's you mark episodes as acquired (mostly because it wasn't that hard to add) after a recording happens (more on that in the wiki). I might implement a way to mark shows as watched, but I need to figure out an easy way to determine if a recording has been watched in NextPVR. I've already implemented the mark as watched in Kodi (via an update to a script called Media Maintenance), so I probably won't do it for NextPVR unless someone asks.
So, introducing TV Maze Integration. First, about TV Maze:
<https://tvmaze.com>
And the script is at:
<https://github.com/pkscout/tvmaze.integration/releases>
There's a wiki page with usage instructions, but basically there are two ways you can use this.
1. The free way you get a list of TV Maze IDs and pass them to the script from the command line. The script will check each show, see if there is an upcoming episode in the EPG, and setup a recurring recording (by default All New Episodes, but you can change that).
2. The paid way (annual subscription to TV Maze) lets you either use your followed shows as the source to try and record or (and this is the one I use), tag shows you want to record and then use that as the source list. If you do the tags, the script will untag the show once a recurring recording has been set (can change that behavior in settings). So I tag new shows with a "New Shows" tag, then run the script via PostUpdateEPG every night to see if a recording can be set up.
The script also let's you mark episodes as acquired (mostly because it wasn't that hard to add) after a recording happens (more on that in the wiki). I might implement a way to mark shows as watched, but I need to figure out an easy way to determine if a recording has been watched in NextPVR. I've already implemented the mark as watched in Kodi (via an update to a script called Media Maintenance), so I probably won't do it for NextPVR unless someone asks.