edit4ever / script.module.zap2epg

zap2epg - EPG grabber for USA/Canada
GNU General Public License v3.0
41 stars 25 forks source link

Redownload the current days EPG data #10

Closed wbeard52 closed 5 years ago

wbeard52 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

I’ve noticed it with CBS ad with FOX. On CBS, the episode would typically be blank and on FOX the sports program shows TBA.

Thanks.

Sent from my Windows 10 device


From: edit4ever notifications@github.com Sent: Sunday, November 18, 2018 4:40:27 PM To: edit4ever/script.module.zap2epg Cc: wbeard52; Author Subject: Re: [edit4ever/script.module.zap2epg] Redownload the current days EPG data (#10)

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??

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/edit4ever/script.module.zap2epg/issues/10#issuecomment-439736779, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aeapm0naW71caCvy6Ut4CYSZUfRon5aAks5uwe_rgaJpZM4YoI7j.

edit4ever commented 5 years ago

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 commented 5 years ago

Currently there are two football games with TBA teams. One on ABC and the other on FOX. When this happened last week, I went to the website on the day of the event and saw that the details were filled in.

ABC – Friday 11/23 @ 10AM FOX – Saturday 11/24 @ 6PM

[cid:image003.png@01D47FD0.AD1D9830]

For the TV shows, both the episode and subtitle are typically missing from the EPG data. I don’t have any current examples of those.

Thanks for your help! A picture was sent with this email. Let me know if you didn’t get it. capture

SH02994183.txt SH00000993.txt SH01465184.txt

edit4ever commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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.