Comments (11)
It looks like that in def correct_times the day_start_time var( start of the first program on the current day) is wrong.
Possible to due that json version also has a start time when the program starts on the previous day and the scrape version not.
Quick fix is to make the following lines comment, this still gives :
# initialise using the start time of the first program on this day
#if programs[0]['start'] != None:
# day_start_time = programs[0]['start']
But still needs additional check to skip programs started on the previous day.
from tvgrabnlpy.
Let's focus on a fix where we use the times reported in JSON. First stripping the date and than adding it is indeed kind of ridicule.
To assess the urgency -- does this error only occur when the script is run between 0:00 and 4:00 (when tvgids.nl still returns the tv schedule from the previous day) or also when the script is run during other times? (Note that when the script has run once during 0.00-4.00 the bad data may propagate in the cache file, so you need to erase that in order to reset).
PS: reaction in Dutch are welcome too. I suspect all users of this software are Dutch...
from tvgrabnlpy.
I've just ran it and found the same error and did some debugging. When trying channel 36 (SBS 6) and looking for NCIS on Tuesday (offset=2), the date changes to Wednesday. It seems to me that indeed most of the time mangling can be removed. The JSON dates look pretty sane at first glance.
from tvgrabnlpy.
I'm currently going over the report, and may not have time tonight to look into it. Code contributions are most welcome :)
from tvgrabnlpy.
I also found this way to retrieve a program's details: http://www.tvgids.nl/json/lists/program.php?id=12424475
from tvgrabnlpy.
@ralphm awesome, I just got a report by someone else too. See #8.
from tvgrabnlpy.
Het gebeurt niet alleen tussen 0:00 en 04:00.
from tvgrabnlpy.
I've just committed 2da0b32 which should simply take the JSON date.
It is currently only available in the experimental branch: https://github.com/macfreek/tvgrabnlpy/tree/experimental
Please test it, and if it works, I'll push it to the master branch and release a new version.
To get to the experimental branch
git pull --all
git checkout experimental
Freek
from tvgrabnlpy.
This does seem to fix the problem for me. Thanks!
from tvgrabnlpy.
Checked some channels with programs that started yesterday.
Looks ok. Great !
from tvgrabnlpy.
Closing this issue; opening #14 to discusses wholes in the guide.
from tvgrabnlpy.
Related Issues (20)
- TVHeadend HOT 1
- File locations for the new version 3 API HOT 9
- 13th Street, NPO Doc, NPO Humor TV and Syfy have ceased and several Horizon.tv IDs have changed. HOT 2
- "Unexpected error in RTL Z thread" HOT 3
- RTL program names being replaced HOT 10
- Nothing at all is being fetched, not even with 2.2.16 HOT 3
- Nothing is being fetched / generated (2.2.17) HOT 8
- tvheadend support script HOT 2
- Sub-genres names interference HOT 3
- Remove groupname list, regardless of separation character HOT 12
- Normal run 40 min. now suddenly >440 minutes. HOT 3
- [Dutch] [Question] Upgraden of op 2.2 blijven? HOT 3
- [Belgium] Missing Radio channels HOT 1
- Cannot open url https://web-api-pepper.horizon.tv/oesp HOT 15
- #76 if not(!) finished. HOT 3
- Add 'showicon' to EPG details? HOT 1
- eating up all my memory HOT 47
- Never stops running and veronica/disney-xd broken. HOT 1
- Onderstreuning voor DVB Link HOT 10
- Update request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tvgrabnlpy.