XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Plugin/Script (Python) Development

Plugin/Script (Python) Development Developers forum for XBMC Python Plugins/Scripts. Scripters/coders only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-06-04, 13:42   #1
cruent
Member
 
Join Date: Feb 2004
Posts: 47
cruent is on a distinguished road
Default

hi all,

i made a nice interactive tvguide script and it can be found at the python script page

feel free to modify it and optimize it

all you have to do is to download xmltv, configure it and update the listing.xml file

just wanna share my work with you all.

enjoy
cruent is offline   Reply With Quote
Old 2004-06-04, 21:41   #2
cruent
Member
 
Join Date: Feb 2004
Posts: 47
cruent is on a distinguished road
Default

how to update the listing.xml i made a little batch file, feel free to modify it to your needs and make it run in windows taskmanager every 2 days (be sure that your xbox is online)

Quote:
@echo off
rem xml tv guide setup by cruent

:: xmltv setup
rem xmltv.exe tv_grab_dk --configure --config-file tv_grab_dk.conf

:: get tv informations
xmltv.exe tv_grab_dk --config-file tv_grab_dk.conf --output listing.xml --days 2

:: upload tv informations to the xbox

> script.ftp echo xbox
>>script.ftp echo xbox
>>script.ftp echo cd /f
>>script.ftp echo cd /f:
>>script.ftp echo cd apps\xbmc\tvguide
>>script.ftp echo binary
>>script.ftp echo prompt n
>>script.ftp echo put listing.xml
>>script.ftp echo bye
:: use the temporary script for unattended ftp
ftp -v -s:script.ftp 192.168.0.2
:: for the paranoid: overwrite the temporary file before deleting it
type nul >script.ftp
del script.ftp

echo enjoy!
thats all for now
cruent is offline   Reply With Quote
Old 2004-06-06, 20:30   #3
ktd
Senior Member
 
Join Date: Nov 2003
Posts: 267
ktd is on a distinguished road
Default

nice one!

is it possible to sort channel list?
i want them to show up in the order i have them in my listings.xml...
ktd is offline   Reply With Quote
Old 2004-06-07, 11:38   #4
ent
Member
 
Join Date: Mar 2004
Posts: 74
ent is on a distinguished road
Default

Quote:
Originally Posted by (t029248 @ june 06 2004,14:01)
it's nice but i prefer to wait till it's more usable... right now it's too difficult.. too much work to make it work..
its not going to get any easier. do you expect it to get the tv guide data for you?

anyhow this is a great script, worked fine with my australian tv guide data.
ent is offline   Reply With Quote
Old 2004-06-07, 17:12   #5
Gamester17
Team-XBMC Project Manager
 
Gamester17's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
Gamester17 will become famous soon enough
Question

listing.xml grabbers for new zealand and belgium/holland written in python so might work in xbmc for cruent's xmltv tv guide script:
http://sourceforge.net/projects/pytvgrab/ * ...i only wish there where more grabber scripts like those available (i'm in the uk myself)
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Gamester17 is offline   Reply With Quote
Old 2004-06-08, 18:03   #6
cruent
Member
 
Join Date: Feb 2004
Posts: 47
cruent is on a distinguished road
Default

Quote:
Originally Posted by (ktd @ june 06 2004,18:30)
nice one!

is it possible to sort channel list?
i want them to show up in the order i have them in my listings.xml...
hehe its kind of difficult, because a dictonary list is stored randomly :nuts:

you can do like this:

Quote:
# the channel number
self.channum = 0
self.sortedchanlist = chanlist.values()
# self.sortedchanlist.sort()
like this the channels are not sorted and stored as a normal dictonary list (randomly)

when i get more time i'll look into this

cheers
cruent is offline   Reply With Quote
Old 2004-06-08, 18:21   #7
ktd
Senior Member
 
Join Date: Nov 2003
Posts: 267
ktd is on a distinguished road
Default

iīv done that already but its still not i the order as i have the channels in my listings.xml...

looking forward to see if you can/will sort it out when you have the time...

*edit*
maybee if "we" hard code the order the channel nummbers should list?
i know its an ugly solution but its just a one time job (and if you add remove some channels)...
ktd is offline   Reply With Quote
Old 2004-06-09, 00:45   #8
ktd
Senior Member
 
Join Date: Nov 2003
Posts: 267
ktd is on a distinguished road
Default

just made a python script that copy listing.xml from my server to xbox everytime xbmc start...

and since i made a schedule that grabs a new 2 days listing.xml that runs every day at 10 am i have a fully automatic tvguide!

thanks alot for the tvguide script cruent!!!
ktd is offline   Reply With Quote
Old 2004-06-09, 17:14   #9
Chrack
Junior Member
 
Join Date: Jun 2004
Posts: 4
Chrack is on a distinguished road
Default

very nice python script.
i have a problem and hope someone can help me ;-)
my prob. is, that i canīt create the tv guide for german programms. i found these xmltv channel ids but they donīt work.
# xmltv channel ids for tv_grab_de_tvtoday, and the channel id on the
# site they map to.
#
3sat.de:3sat
ard.de:ard
arte-tv.com:arte
cnn.com:cnn
dsf.com:dsf
eurosport.de:eurosport
hr-online.de:hessen
hamburg1.de:hamburg%201
kabel1.de:kabel%201
kika.de:kinder%20kanal
mdr.de:mdr
mtv.de:mtv
mtv2.de:mtv2
n-tv.de:n-tv
n24.de:n24
ndr.de:ndr
neunlive.de:neunlive
1.omroep.nl:holland%201
2.omroep.nl:holland%202
3.omroep.nl:holland%203
orb.derb
1.orf.atrf%201
2.orf.atrf%202
phoenix.dehoenix
prosieben.dero%207
rtl.de:rtl
rtl2.de:rtl%202
superrtl.de:super%20rtl
sat1.de:sat.1
1.sfdrs.ch:sf1
2.sfdrs.ch:sf2
swr.de:sw%20iii
tvb.de:tv%20berlin
viva.tv:viva
vox.de:vox
wdr.de:west
zdf.de:zdf
tf1.fr:tf%201
trt.net.tr:trt
nbc.com:nbc-super
euronews.net:euronews
france3.fr:fr%203
tvnrw.de:tvnrw
vivaplus.tv:vivaplus
3.br-online.de:bayern
bbcworld.com:bbcworld
tv5.org:tv5
france2.fr:antenne%202
sfb.de:sfb1
xxp.tv:xxp
tvm.de:tv%20m%dcnchen
premiere.deremiere
tele5.de:tele5

can someone help me by these channels to put it in the listing.xml??

sorry for my english, itīs not the best
Chrack is offline   Reply With Quote
Old 2004-06-09, 17:24   #10
ktd
Senior Member
 
Join Date: Nov 2003
Posts: 267
ktd is on a distinguished road
Default

you cant just put a few channels in a file called listing.xml. you have to grab (create) a file called listing.xml that you put in the tvguid folder on you xbox...

here, http://sourceforge.net/project/showf...group_id=39046 is a good place to start...
ktd is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TV-Guide (the XMLTV TVguide from XBMP) cruent XBMC Feature Suggestions 29 2008-06-10 22:32
TV-Guide (integrated/universal XMLTV-GUI) los93sol Plugin/Script (Python) Help and Support 0 2005-06-28 06:39
Python xmltv grabber - xbmc port? jalla XBMC Feature Suggestions 3 2004-11-30 20:15
Python TV-Guide development? nlemoz Plugin/Script (Python) Development 13 2004-04-08 10:15


All times are GMT +2. The time now is 13:00.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project