Kodi Community Forum
Interactive TV-Guide (Python XMLTV) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Interactive TV-Guide (Python XMLTV) (/showthread.php?tid=3989)

Pages: 1 2 3 4 5 6


- cruent - 2004-06-04

hi all,

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

feel free to modify it and optimize it Smile

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 - 2004-06-04

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) Smile

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 Smile


- ktd - 2004-06-06

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...


- ent - 2004-06-07

(t029248 @ june 06 2004,14:01 Wrote: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.


- Gamester17 - 2004-06-07

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)


- cruent - 2004-06-08

(ktd @ june 06 2004,18:30 Wrote: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) :p

when i get more time i'll look into this Smile

cheers


- ktd - 2004-06-08

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 - 2004-06-08

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!!!


- Chrack - 2004-06-09

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.de:orb
1.orf.at:orf%201
2.orf.at:orf%202
phoenix.de:phoenix
prosieben.de:pro%207
rtl.de:rtl
rtl2.de:rtl%202
superrtl.deConfuseduper%20rtl
sat1.deConfusedat.1
1.sfdrs.chConfusedf1
2.sfdrs.chConfusedf2
swr.deConfusedw%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.deConfusedfb1
xxp.tv:xxp
tvm.de:tv%20m%dcnchen
premiere.de:premiere
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 Rolleyes


- ktd - 2004-06-09

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/showfiles.php?group_id=39046 is a good place to start...


- cruent - 2004-06-09

i just updated the tv-guide to version 0.2 and it can be found on the python script page

now you can sort the channels or not.

it support ftp, so the guide checks if the listing.xml filesize is different on the xbox and if the updated file is there it does nothing.

this means that you have to install a ftp server on your workstation which updates the listing.xml file (located in the root of the ftp) every 2. day.
modify the script to your ip/port/user/pass

and you only need this now:
Quote::: get tv informations
xmltv.exe tv_grab_dk --config-file tv_grab_dk.conf --output listing.xml --days 2
and then the guide will upload listing.xml on executing the script only if needed Smile

cheers

/cruent


- ktd - 2004-06-09

great work with the (not)sorting of channels!

i couldnt get along with your ftp script thing but thats ok because i did my own last night that grabs listing.xml via ftp from my server everytime i start xbmc...

one thing you should add in your ftp section is the path to lisitng.xml if its not in the root of your ftp server and you dont wanna add a user only for this...
i did add that in your script before i switched back to my script again...


- Urk977 - 2004-06-17

just uploaded version 0.3 of the script :p it adds support to download the listing using an url.

when (if Huh) the admin dude approves it you will find it on the python scripts page http://dwl.xboxmediacenter.de

cheers,

urk977


- nianhbg - 2004-06-18

this is a great script. :lol: thanks

i´m still working on a swedish script with channels icons
and a diffrent channel display.

/nianhbg


- senergy - 2004-06-27

i just discovered a australian xmltv grabber so i finally got to test this script out. its great. needs a liitle prettying up with icons etc but im really excited with it.
thanks a lot dude.