GithubHelp home page GithubHelp logo

edit4ever / zap2xml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fasteddycurrent/zap2xml

4.0 4.0 2.0 199 KB

zap2xml in Python 2.7 for use on LibreELEC and OpenELEC systems

Python 95.14% Shell 4.86%

zap2xml's People

Contributors

edit4ever avatar fasteddycurrent avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

zap2xml's Issues

Latest master errors on parsing zap2it files

[I] Parsing: EP000018980047
Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=EP000043150054
[D] Parsing: EP000043150054
Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?rtype=pgmimg&pgmId=EP000043150054
[I] Parsing: EP000043150054
Exception
error<type 'exceptions.TypeError'>
Traceback (most recent call last):
File "/home/Public/Kodi/XMLTV/Deploy/Zap2It/zap2xml.py", line 2006, in
main()
File "/home/Public/Kodi/XMLTV/Deploy/Zap2It/zap2xml.py", line 1916, in main
parseGrid(fn) #data read in and unicode it
File "/home/Public/Kodi/XMLTV/Deploy/Zap2It/zap2xml.py", line 1082, in parseGrid
p.feed(b)
File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 161, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 327, in parse_starttag
self.handle_starttag(tag, attrs)
File "/home/Public/Kodi/XMLTV/Deploy/Zap2It/zap2xml.py", line 704, in handle_starttag
globals()['on_%s' % tag](self, tag, attrs)
File "/home/Public/Kodi/XMLTV/Deploy/Zap2It/zap2xml.py", line 323, in on_td
if re.search("^MV",cp):
File "/usr/lib/python2.7/re.py", line 142, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or buffer

Command Line:
/usr/bin/python /home/Public/Kodi/XMLTV/Deploy/Zap2It/zap2xml.py -u [email protected] -p xxxxxxxxxxxx -o /home/Public/Kodi/XMLTV/Deploy/Zap2It/xmltv.xml -c /home/Public/Kodi/XMLTV/Deploy/Zap2It/cache -d 21 -F -O -T -U -D -I -i /home/Public/Kodi/XMLTV/Deploy/Zap2It/icons

Exceotion error when getting 10/28

I get the following error when running the script, it always seems to stop at the same position

2016-10-14 16:23:44,526 Getting: http://tvschedule.zap2it.com/tvlistings/ZCGrid.do?isDescriptionOn=true&fromTimeInMillis=1476637200000&aid=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](self, tag, attrs)
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.