Tips for implementing movie wishlist?
Added by Ben K over 1 year ago
Hallo everyone,
I'd like to be able to give my Tvheadend server a kind of "wishlist" for movies. The idea is that I have a list with movies, that I'd like to have and if one of my wanted movies appears in epg they get scheduled automatically.
Since tvheadend doesn't seem to have such a feature (except maybe autorecs but that would be painful), my idea would have been to write a script that accesses the api. Does anyone have a better (as in: more robust or even easier) idea on how to handle this? I'm open to any kind of suggestion, even if you think it might be stupid.
Hoping for suggestions,
Ben.
Replies (3)
RE: Tips for implementing movie wishlist? - Added by Ben K about 1 year ago
I started working that script I had originally in mind. Once I think it's robust enough, I will post in in the "tutorials and setups" subforum.
RE: Tips for implementing movie wishlist? - Added by Delta Mike Charlie about 1 year ago
Ben K wrote:
(except maybe autorecs but that would be painful)
I think that you have already answered your own question: 'AutoRecs'.
If I recall correctly, AutoRecs accept regular expressions for the search criteria. I'm not sure what exact dialect of RegEx TVH uses, however, it should support an OR statement.
Build a single AutoRec with a RegEx in the title something like:
(movie title one)|(movie title two)|(movie title three)
TVH may have a character limit for the RegEx in the title (I don't know) so you may have to build a few AutoRecs and maybe split them by genre or whatever.
If you are not well versed in regular expressions, there are a number of web sites with tutorials and also some online tools that will let you test and validate your RegEx.
RE: Tips for implementing movie wishlist? - Added by Ben K about 1 year ago
The program is now complete and can be accessed under:
https://github.com/skittlesvampir/tvheadend-movie-wishlist
It works really well and is a lot more convenient than AutoRecs!