Interactive TV-Guide (Python XMLTV)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jobbie Offline
Junior Member
Posts: 1
Joined: Jul 2004
Reputation: 0
Question    Post: #31
for those in the uk - some dude has written a script to grab/translate/amalgamate bleb.org/tv listings.
pretty handy if you can't be arsed to get xmltv working.
find quote
flautash Offline
Junior Member
Posts: 29
Joined: Jan 2004
Reputation: 0
Post: #32
has anyone here tried o2grabber from
http://www.o2design.se/o2grabber/ ?
find quote
ktd Offline
Senior Member
Posts: 267
Joined: Nov 2003
Reputation: 0
Post: #33
i use it everyday...

do you know swedish? iv written a guide for auto update listing.xml everyday from a ftp or http server...

http://forum.psxcare.com/support/showthread.php?t=14885

i will update it with my http script later today. right now it only update listing.xml via ftp...

i did this cus i couldnt get the update thing in tvguide.py to work...
my script dosent check the filesize, i use the date of the file and if its older then today and after 10am (when mt listing.xml gets updated on my server) i copy it to my xbox when xbmc starts...
find quote
Izzo Offline
Junior Member
Posts: 1
Joined: Jul 2004
Reputation: 0
Post: #34
hi all,

i'm having some problems with the script, its not downloading the listing.xml at all, xbmc.log shows the following error :

13-07-2004 21:05:54 -->python initialized<--

13-07-2004 21:05:54

13-07-2004 21:05:54 sys:1: deprecationwarning: non-ascii character '\xc6' in file q:\scripts\tv.guide.py on line 253, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

13-07-2004 21:05:54 html size failed:

13-07-2004 21:05:54

13-07-2004 21:05:54 exceptions.typeerror

13-07-2004 21:05:54

13-07-2004 21:05:54 int() argument must be a string or a number

13-07-2004 21:05:54

13-07-2004 21:05:54 traceback (most recent call last):

13-07-2004 21:05:54 file "q:\scripts\tv.guide.py", line 89, in gethtmlsize

13-07-2004 21:05:55 size = int(res.getheader("content-length"))

13-07-2004 21:05:55 typeerror: int() argument must be a string or a number

13-07-2004 21:05:55 getsize() failed:

13-07-2004 21:05:55

13-07-2004 21:05:55 exceptions.oserror

13-07-2004 21:05:55

13-07-2004 21:05:55 [errno 2] no such file or directory: 'q:\\tvguide\\listing.xml'

13-07-2004 21:05:55

13-07-2004 21:05:55 traceback (most recent call last):

13-07-2004 21:05:55 file "q:\scripts\tv.guide.py", line 55, in downloadlist

13-07-2004 21:05:55 file_size = getsize(listing)

13-07-2004 21:05:55 file "q:\python\lib\ntpath.py", line 228, in getsize

13-07-2004 21:05:55 oserror: [errno 2] no such file or directory: 'q:\\tvguide\\listing.xml'

13-07-2004 21:05:55 no listing available
find quote
professorB Offline
Junior Member
Posts: 2
Joined: Aug 2004
Reputation: 0
Post: #35
great script; i've added it to my front page and use it lots.

the sort function doesn't play nice with channel numbers 1-9; my list starts with 10 and 2 comes before 20, etc. is there a way to edit the parsing so that they have front zeros and hence come before channel 10?

also it'd be faboo if we could get it so that the was a selected box that would move around (to get info more easily). then again, i'm not sure it's necessary since its not too hard to move the box you want to the upper left corner.

:thumbsup:

i'm working on prettifying the pngs; will upload them if i get anywhere.
find quote
Striker Offline
Fan
Posts: 478
Joined: Mar 2004
Reputation: 0
Post: #36
i just cant get it to work with 0820 cvs.
aqtbrowsers works fine, but this script just doesnt want to start. the code from urk977 to test the download does work Sad
but downloading doesnt work ok with this script.

try http://194.109.6.92/~catwesel/tvguide/listing.xml

it just hangs on please wait....
find quote
Caracarn Offline
Junior Member
Posts: 17
Joined: Jan 2004
Reputation: 0
Post: #37
anyone with a working grabber for australian tv guides, could you please provide the scripts etc?
find quote
Caracarn Offline
Junior Member
Posts: 17
Joined: Jan 2004
Reputation: 0
Post: #38
found an australian xml tv grabber.

the script references png files in the tvguide dir, but i dont have them, where can i get these files

the path to images
background = "q:\\tvguide\\background.png"
timebar = "q:\\tvguide\\timebar.png"
blackbar = "q:\\tvguide\\blackbar.png"
titlebox = "q:\\tvguide\\titlebox.png"
descbox = "q:\\tvguide\\descbox.png"
find quote
Caracarn Offline
Junior Member
Posts: 17
Joined: Jan 2004
Reputation: 0
Post: #39
i have generated an xml file, here is a sample of the file:

<?xml version="1.0" encoding="windows-1252" standalone="yes" ?>
- <tv generator-info-name="auxmltvgrabber/1.0">
- <channel id="free.perth.10">
<display-name lang="en">network ten</display-name>
<icon src="[url]http://d1.com.au/icons/10.png"[/url] />
</channel>
- <programme channel="free.perth.10" start="20040828020000 +1000" stop="20040828040000 +1000">
<title>home shopping</title>
<desc>(g)</desc>
<category>shopping</category>
<rating system="aba">g</rating>
</programme>


i run the tvguide python script in xbmc and everything seems to work ok, but i just get a blank screen with times along the top, but no tv guide info. is the xml file contain correct information or am i missing something?
find quote
smouge Offline
Junior Member
Posts: 18
Joined: Oct 2003
Reputation: 0
Post: #40
i'm getting the following error:

Quote:03-09-2004 19:45:49 notice running the application...
03-09-2004 19:45:49 info -->python initialized<--
03-09-2004 19:45:49 info
03-09-2004 19:45:49 info get url: http://www.xbox-scene.com/xbox1data/xbox-scene.xml
03-09-2004 19:45:49 info detecting dvd-rom media filesystem...
03-09-2004 19:45:49 error detection of dvd-rom media failed.
03-09-2004 19:45:57 info sys:1: deprecationwarning: non-ascii character '\xc6' in file q:\scripts\tv.guide.py on line 253, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
03-09-2004 19:45:58 info html size failed:
03-09-2004 19:45:58 info
03-09-2004 19:45:58 info exceptions.typeerror
03-09-2004 19:45:58 info
03-09-2004 19:45:58 info int() argument must be a string or a number
03-09-2004 19:45:58 info
03-09-2004 19:45:58 info traceback (most recent call last):
03-09-2004 19:45:58 info   file "q:\scripts\tv.guide.py", line 89, in gethtmlsize
03-09-2004 19:45:58 info     size = int(res.getheader("content-length"))
03-09-2004 19:45:58 info typeerror: int() argument must be a string or a number
03-09-2004 19:45:58 info getsize() failed:
03-09-2004 19:45:58 info
03-09-2004 19:45:58 info exceptions.oserror
03-09-2004 19:45:58 info
03-09-2004 19:45:58 info [errno 2] no such file or directory: 'q:\\tvguide\\listing.xml'
03-09-2004 19:45:58 info
03-09-2004 19:45:58 info traceback (most recent call last):
03-09-2004 19:45:58 info   file "q:\scripts\tv.guide.py", line 55, in downloadlist
03-09-2004 19:45:58 info     file_size = getsize(listing)
03-09-2004 19:45:58 info   file "q:\python\lib\ntpath.py", line 228, in getsize
03-09-2004 19:45:58 info oserror: [errno 2] no such file or directory: 'q:\\tvguide\\listing.xml'
03-09-2004 19:45:58 info no listing available
03-09-2004 19:45:58 info
03-09-2004 19:45:58 info []
03-09-2004 19:45:58 info

it seems that if no listing.xml is available in q:\\tvguide it cannot compare and stops. would be better that in this case the script would just get the file from the url
find quote
Post Reply