• 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 48
Zap2xml for ATSC in OpenELEC
.....
 
Intel Core i5 2320 8GB 500GB HDD - Tvheadend + Kodi, Raspberry Pi 3 - LibreELEC, HDHomeRun HDHR3-4DC, Epson TW3200, Pioneer VSX-1123
Reply
Latest release links:

Latest zap2xml addon release: https://www.dropbox.com/s/tjggtefc792gae...l.zip?dl=0
zap2xml addon source: https://github.com/edit4ever/script.module.zap2xml

Latest schedules direct addon release: https://www.dropbox.com/s/3prwffcphdupn3...3.zip?dl=0
Schedules Direct addon source: https://github.com/astrilchuk/sd2xmltv
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
Hi @edit4ever

I have tried to use your python script via the command line and have been somewhat successful in terms I have been able to login to zap2it and have been able to get 9 of the 28 requests but seem to always encounter the below error on the 10th request. I have checked and get this error on latest released python script included above.

Any help in getting this error resolved would be greatly appreciated..

2016-10-14 16:23:44,526 Getting: http://tvschedule.zap2it.com/tvlistings/...tvschedule
2016-10-14 16:23:47,315 Exception
2016-10-14 16:23:47,321 Traceback (most recent call last):
File "zap2xml.py", line 1916, in main
parseGrid(fn) #data read in and unicode it
File "zap2xml.py", line 1082, in parseGrid
p.feed(b)
File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed
File "/usr/lib/python2.7/HTMLParser.py", line 161, in goahead
File "/usr/lib/python2.7/HTMLParser.py", line 327, in parse_starttag
File "zap2xml.py", line 704, in handle_starttag
globals()'on_%s' % tag
File "zap2xml.py", line 323, in on_td
if re.search("^MV",cp):
File "/usr/lib/python2.7/re.py", line 146, in search
TypeError: expected string or buffer
Reply
Hey,

first i wanted to say thanks for all your hard work.

So i installed your addon on kodi, on my RPi3 w/ openelec and configured it. I tried with both a zap2it account and tvguide account, but after rebooting my Rpi and my server where tvheadend is running off of, i never see the zap2xml grabber appear under internal grabbers under the TVheadend configuration. Can you assist please?

Thanks again!
Reply
(2016-10-14, 21:08)tommycahir Wrote: if re.search("^MV",cp):
File "/usr/lib/python2.7/re.py", line 146, in search
TypeError: expected string or buffer

There is an issue at times with the genre code renaming that was part of the original code. Since tvhedend doesn't really support the USA genre names, I have removed the code for now. You can redownload the file and see if it works.
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
(2016-10-15, 03:48)GameOver69 Wrote: i never see the zap2xml grabber appear under internal grabbers under the TVheadend configuration. Can you assist please?

Sorry - This is an error in the files being seen as executable. It happens when I rush and zip the file in windows instead of linux.

I fixed the files - so just redownload: https://www.dropbox.com/s/tjggtefc792gae...l.zip?dl=0
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
(2016-10-15, 16:07)edit4ever Wrote:
(2016-10-14, 21:08)tommycahir Wrote: if re.search("^MV",cp):
File "/usr/lib/python2.7/re.py", line 146, in search
TypeError: expected string or buffer

There is an issue at times with the genre code renaming that was part of the original code. Since tvhedend doesn't really support the USA genre names, I have removed the code for now. You can redownload the file and see if it works.

Thanks a million mate, that works perfectly now, really appreciate your work on this add-on and script..
Reply
Hi again

I'm not sure if there is some bug in the zap2it site or if something has changed there but anytime i try running the zap2xml.py (date 17/10 from github) script now I get the below errors (obviously email is dummy here). I have gone to the URL referenced and put in my login details but that returns me to tvschedule page without a correct login being processed, if i use the same details in the popup that appears they work no problem.

zap2xml.py:600: UserWarning: gzip transfer encoding is experimental!
br.set_handle_gzip(True)
Logging in as [email protected]

http://tvschedule.zap2it.com/tvlistings/...tvschedule

Didn't Match .*Logout of your Zap2it account.* Sleep 1 sec.:Function: loginZAP :Line: 574
http://tvschedule.zap2it.com/tvlistings/...tvschedule

Didn't Match .*Logout of your Zap2it account.* Sleep 1 sec.:Function: loginZAP :Line: 574
http://tvschedule.zap2it.com/tvlistings/...tvschedule

Didn't Match .*Logout of your Zap2it account.* Sleep 1 sec.:Function: loginZAP :Line: 574
Failed to login within ,3, retries.
:Function: loginZAP :Line: 577
errorNone
Reply
(2016-10-19, 23:49)tommycahir Wrote: Hi again

I'm not sure if there is some bug in the zap2it site or if something has changed there but anytime i try running the zap2xml.py (date 17/10 from github) script now I get the below errors (obviously email is dummy here). I have gone to the URL referenced and put in my login details but that returns me to tvschedule page without a correct login being processed, if i use the same details in the popup that appears they work no problem.

zap2xml.py:600: UserWarning: gzip transfer encoding is experimental!
br.set_handle_gzip(True)
Logging in as [email protected]

http://tvschedule.zap2it.com/tvlistings/...tvschedule

Didn't Match .*Logout of your Zap2it account.* Sleep 1 sec.:Function: loginZAP :Line: 574
http://tvschedule.zap2it.com/tvlistings/...tvschedule

Didn't Match .*Logout of your Zap2it account.* Sleep 1 sec.:Function: loginZAP :Line: 574
http://tvschedule.zap2it.com/tvlistings/...tvschedule

Didn't Match .*Logout of your Zap2it account.* Sleep 1 sec.:Function: loginZAP :Line: 574
Failed to login within ,3, retries.
:Function: loginZAP :Line: 577
errorNone

I'm still using the tools.module.zap2xml-0.4 without any hiccups.
http://forum.kodi.tv/showthread.php?tid=...pid2368726

The log complains about sortThing1, but everything seems to work fine still.

Code:
/storage/.kodi/addons/tools.module.zap2xml/zap2xml.py:1400: SyntaxWarning: name 'sortThing1' is assigned to before global declaration
  global sortThing1, sortThing2
/storage/.kodi/addons/tools.module.zap2xml/zap2xml.py:1400: SyntaxWarning: name 'sortThing2' is assigned to before global declaration
  global sortThing1, sortThing2

Also, even though edit4ever's package installs mechanize, I found I still needed to install script.module.mechanize-0.2.6 manually... or it wouldn't display the info in my guide. At least with my setup that is.
Code:
https://github.com/Sandmann79/xbmc/blob/master/packages/script.module.mechanize/script.module.mechanize-0.2.6.zip
Reply
Thanks , I just tried that script and I still get the same error, I also noticed that the zap2it site now redirects to http://screenertv.com/ so maybe there is some changes coming which will impact us
Reply
(2016-10-20, 00:11)greenbag Wrote: I'm still using the tools.module.zap2xml-0.4 without any hiccups.

The log complains about sortThing1, but everything seems to work fine still.

If you want to get the "updates" without having to reinstall and rebuild your zap2xml setup - just copy the zap2xml.py file from the current addon and replace the one in your tools.module.zap2xml folder.

The addon folder name was redone to match the kodi standard, but the zap2xml.py file will work in either format. Copying the new file will fix the sortThing issue.
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
(2016-10-20, 00:25)tommycahir Wrote: Thanks , I just tried that script and I still get the same error, I also noticed that the zap2it site now redirects to http://screenertv.com/ so maybe there is some changes coming which will impact us

Just took a look at this...mmmm...not sure what changes are in store. My version is still grabbing the data on my system...but maybe new accounts are affected?

What happens when you just login in to zap2it.com and then click on tvlistings? Do you get your proper lineup and can you access your preferences to add favorite channels?
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
(2016-10-20, 00:33)edit4ever Wrote: Just took a look at this...mmmm...not sure what changes are in store. My version is still grabbing the data on my system...but maybe new accounts are affected?

What happens when you just login in to zap2it.com and then click on tvlistings? Do you get your proper lineup and can you access your preferences to add favorite channels?

when I click on tvlistings I go to http://tvschedule.zap2it.com/tvlistings/...tvschedule and click on login, a popup appears and I login no problem get to see my saved favourites etc. BUT if I go to the url behind login in a new tab and use the very same details it brings me back to the tvlistings screen with following URL http://tvschedule.zap2it.com/tvlistings/...tvschedule without completing the login.

The URL behind the login link is the very same URL used in your script - http://tvschedule.zap2it.com/tvlistings/...tvschedule
Reply
(2016-10-20, 00:39)tommycahir Wrote: when I click on tvlistings I go to http://tvschedule.zap2it.com/tvlistings/...tvschedule and click on login, a popup appears and I login no problem get to see my saved favourites etc. BUT if I go to the url behind login in a new tab and use the very same details it brings me back to the tvlistings screen with following URL http://tvschedule.zap2it.com/tvlistings/...tvschedule without completing the login.

I just tried this - logging out - opening new tabs - logging in to both - all worked without error.

I'm thinking you should try a password reset or create a new account with another email address, if you have one, and see if you have the same issue.
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
(2016-10-20, 00:28)edit4ever Wrote:
(2016-10-20, 00:11)greenbag Wrote: I'm still using the tools.module.zap2xml-0.4 without any hiccups.

The log complains about sortThing1, but everything seems to work fine still.

If you want to get the "updates" without having to reinstall and rebuild your zap2xml setup - just copy the zap2xml.py file from the current addon and replace the one in your tools.module.zap2xml folder.

The addon folder name was redone to match the kodi standard, but the zap2xml.py file will work in either format. Copying the new file will fix the sortThing issue.

This is from a fresh install in LE...

1) initial LE install
2) install tvheadend server and client and configure in LE
3) install zap2xml and configure
4) reboot
5) configure tvheadend web ui
6) reboot
7) no info in guide until I install mechanize.

Even if I wait 10 minutes, it's still blank until I install manually.
Reply
  • 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 48

Logout Mark Read Team Forum Stats Members Help
Zap2xml for ATSC in OpenELEC4