Open NumberB opened 7 years ago
As an update I ran the standard old "zap2xml.pl" perl script on a VM of mine and it was able to connect and parse the zap2it data just fine, so it isn't zap2it, it's this script. User/password were the same.
This was the end of the perl script output:
[28/28] Parsing: /home/tvheadend/zap2xml/cache/1501473600000.html.gz
Downloaded 3259063 bytes in 75 http requests.
Writing XML file: /home/tvheadend/zap2xml/xmltv.xml
Completed in 45s (Parse: 43s) 69 stations, 5776 programs, 17309 scheduled.
I just realized I never did come back and share the fix for this. It's simple:
Edit this line:
loggedinStr = '.*Logout of your Screener account.*'
To be this:
loggedinStr = '.*Logout of your Zap2it account*'
And you're good to go.
Line 569 mentions this: "# todo find response success like perl script rather than search whole page". If Zap2it changes text like this in the future this issue will pop up again and need the manual fix. It would be better to implement that response success as it says :)
According to the timestamp I haven't pulled new EPG data for 1 week (July 17 was the last successful). My cron keeps running and it looks to be an issue with zap2it rather than the script. It looks like they may no longer return sorted data like the script scrapped.
Here's the 3rd entry in my log:
I logged out and logged into zap2it.com using my browser to verify that my user/password are correct. They are.
I also tried (after logging in) to pull up this URL: "http://tvschedule.zap2it.com/tvlistings/ZCLogin.do?method=getStandAlonePage&aid=tvschedule", but it brings up a blank page and puts up the login form on the left.
So is this a general zap2it issue or something in the script? To me it looks like zap2it is trying to drop free scrapping :(