rocky4546 / script.xmltv.tvheadend

scripts for generating xmltv.xml file supporting tvheadend genres
GNU General Public License v3.0
8 stars 2 forks source link

EPG Updates #3

Open ClayGlenn opened 6 years ago

ClayGlenn commented 6 years ago

The scripts initially load 2 weeks' of programming from Zap2It EPG and caches the info. It appears that The Tonight Show Starring Jimmy Fallon only lists the upcoming guests for one week, so the EPG gets one week of listings with the guest descriptions, and the second week of listings with no guest descriptions. Each day the EPG gets updated with one more day of listings, two weeks out, but never refreshes the information that is already in the cache. So after a week goes by, none of the listings for The Tonight Show have any guest info. My current work-around for this is, once a week on Monday morning at 2:00 a.m., I have a cron job purge all the Cache files, so that when the Zap2XML scripts run, everything gets reloaded. This seems a little heavy-handed though. Is there a less brute-force method to get the listings updated?

rocky4546 commented 6 years ago

Sorry that you are having issues. I will say that zap2it now only has 12-13 days of info, so my .zap2itrc file has the number of days to 12. Also make sure you are using the latest zap2xml.sh file. It has lines to always remove the current day of information so the latest data from zap2it is downloaded for today. You can review the script and change it to the number of days you wish to refresh, but I find the last 24 hours seems good when I run it around 8am. And you are correct, the zap2xml.pl file does not tend to refresh the information well so I have the TBA setting to true so sports seems to work well. The stuff in the middle is not perfect, but doing that does cause a ton of calls to zap2it. So to summarize, in .zap2xmlrc you can change the ncdays to remove files from the end and ncsdays to remove files from the start, but it does not seem to work. The zap2xml.sh file line 43 has the number of days to remove from the front (today forward) and refresh. You can try a value of 2 days and see if the next 2 days looks clean.

rocky4546 commented 6 years ago

I have been working with the zap2xml.pl developer on a few changes he has made. I just sent him the info on the script not deleting based on ncsdays. He has been pretty responsive. I will let you know when he responds.

ClayGlenn commented 6 years ago

Ok, thanks for the updates. I'll watch for further changes.