-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
horizon.tv issues with some programs already in progress #56
Comments
You mean like the default tvgids.nl html view (which we don't use), where the listing for the current day starts at the current time? |
Unfortunately Kodi doesn't support caching of only previous data, their cache function is an all or nothing thing, so if I turn cache on I won't get any fresh data like updated times and details for the current day. This is one of the channels that are only available from horizon.tv, since this is also a channel with a 24 hour block it's most noticible on this one. The data is there on horizon's site, it's just that the byStartTime flag only delivers programs with a StartTime during that range. However, if you change it to byEndTime, it delivers programs with a EndTime during that range. As a quick test I just changed it to use byEndTime and I got the currently airing block:
byStartTime gives me the block for tommorow
Another example is for Slam!TV (5-24443943138)
With byStartTime the first program is "SLAM!NL" which starts about 2 hours from now at 3am CET:
It looks like the fix is to use byEndTime instead of byStartTime |
As a test I changed it to use byEndTime on my local copy and it worked great, no errors |
Good! I'll check it and if it indeed goes OK, Ill release a 2.2.10 version. I was anyway planning on looking deeper into Horizon if I can get it to deliver all programs in one without the 100 items limit. It would make the code much simpler, as I don't need to catch the timing of item 100. |
This is a timezone thing. With byStartTime it does exactly what it should do. If I grab MTV Music 24 with offset 0 for three days, I get the listing starting today at 0:00 CET for three days, including the first one for day 4. If I set it to byEndTime the listing includes the last one for day -1, which means the listing from yesterday. Possibly my calculation for the starting moment fails because you are in a different timezone. |
This is probably to complex to address in the current version, but should go right with the changes to timezone management in version 3. Probably it comes from my earlier adaptation on the calculation of |
Check in the current 3.0 alfa what happens in your timezone. Both with |
As said before: If you add
in tv_grab_nl.py to for instance:
it won't byte your current configuration and cache files.. |
I'll try it out this weekend |
Thanks, I knew you would find it. I do not know how, but thanks. Probably in 1 or 2 month we have to revert back. Kan I ask you to keep an eye on the availability of the old url? |
There seems to be an issue with the horizon.tv grabber where it doesn't include programs already in progress at the time of the grab
It's most noticible on channels like MTV Music 24 (5-24443943214) where the schedule is 24 hour blocks that start at 12am CET (11pm UTC), so the listings for the channel don't start until 12am CET the following day.
The text was updated successfully, but these errors were encountered: