XMLTV Grabbers with no stop time = 0 events injected
|Assignee:||Andreas Öman||% Done:|
|Category:||EPG - Grabbers|
Ok. This has been raised in the past but I think it could be made a nice feature request.
Condition: If you run an xmltv grabber that either doesn't grab stop times or the provider does list them, the output xml isn't compatible with tvheaded and results in 0 events injected condition. (quite common based on the forums)
Option: tv_sort can be used to add stop-times by computing from the start time of the next program, but it will take longer.
Feature Request: Add a check-box to the UI to allow tv_sort to be invoked by the user.
Code wise, pipe the stdout from the grabber to stdin of tv_sort so that &outbuf from spawn_and_store_stdout in xmltv.c contains the stdout of tv_sort.
#1 Updated by Adam Sutton 10 months ago
- Status changed from New to Rejected
If stop time is missing then that is an upstream issue and I think using tv_sort (as suggested) is the right approach. Or just bug the original script author to fix their script!
However the suggested change will not be implemented.
Instead the new EPG grabber code will allow XMLTV data to be fed into TVHeadend (via a unix domain socket), thus making it possible to have more complex control of how XMLTV is inserted (cronjobs, pipelines like suggested here, etc...).
This code is currently available on my fork github.com/adamsutton/tvheadend and should be merged into the main code this week.