edit4ever / zap2xml Goto Github PK
View Code? Open in Web Editor NEWThis project forked from fasteddycurrent/zap2xml
zap2xml in Python 2.7 for use on LibreELEC and OpenELEC systems
This project forked from fasteddycurrent/zap2xml
zap2xml in Python 2.7 for use on LibreELEC and OpenELEC systems
[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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.