Skip to content
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

Redownload the current days EPG data #10

Closed
wbeard52 opened this issue Nov 18, 2018 · 7 comments
Closed

Redownload the current days EPG data #10

wbeard52 opened this issue Nov 18, 2018 · 7 comments

Comments

@wbeard52
Copy link

A lot of times, when you download seven days worth of EPG data, some of the slots for mostly sports are listed as TBA. I'd like to have a feature that would automatically delete the x number from the current date and get fresh data to capture any changes between downloads.

If this was ran on Saturday the script would redownload Saturdays EPG data as well as any new EPG data as specified in the number of days to download option.

@edit4ever
Copy link
Owner

Interesting...I totally understand the issue, just hadn't noticed as I don't pay much attention to sports. The current system doesn't download a time period that has already been downloaded...but what your seeing is a result of changes to the time period - therefore the base information should be downloaded again. I'll have to take a look to make sure that the episode number changes for the TBA when they put something in there. I assume it would and it shouldn't add too much data to redownload the core guide data and then just download the data for the updated episodes.

Since this option would increase download data sizes - especially when you have the system set for 14 days of data - I might look at making this an option instead of normal operation. However if testing reveals that the amount of data doesn't increase much (5-10%) then it should be fine for all.

Can you point me to a channel that this happens on frequently so I can test??

@wbeard52
Copy link
Author

wbeard52 commented Nov 19, 2018 via email

@edit4ever
Copy link
Owner

OK - if you know how to access the zap2epg folder where the cache files are stored, it would be great to get a copy of one of the time periods that has the TBA data. I'm guessing that may be from Saturday with the college football games? My current listings have all the data - so I don't have a reference for the missing episode info to run tests. If you don't know how to access that folder - let me know an upcoming date and channel you see the TBA. Thanks!

@wbeard52
Copy link
Author

wbeard52 commented Nov 19, 2018 via email

@edit4ever
Copy link
Owner

Perfect - That's what I needed. I'll try to take a look over the next week and see if I can develop a fix for you to test before the games on Friday. That way you can see if the data updates for you. Thanks!

@edit4ever
Copy link
Owner

OK - I think I've sorted this fix. Here is an update to test:

https://www.dropbox.com/s/5hd0wninb1mgo3h/script.module.zap2epg-1.1.0.zip?dl=0

The first time you run the grabber you won't see the change as it will be marking the TBA episodes to be refreshed for the next run. So you can wait a day or two or if you want to test immediately, just run the internal grabber twice. It should update the programs that now have data - like Friday's ABC game.

Please let me know if you have any issues. Thanks!

@wbeard52
Copy link
Author

wbeard52 commented Nov 20, 2018

Thanks for the updated script. I over wrote the old addon folder with the updated script and ran it twice in TVH. It worked as advertised. I appreciate your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants