2004-08-31, 18:01
hello,
yesterday i started making a script that reads a file on the internet ( http://213.51.131.56/asd2/car.txt ) and outputs this on the screen. the problem is that it doesn't work at all. i have used another script that shows the dutch tv info on the screen (made by nrj_nl).
this is the code that i try to use:
all i want (for now) is to read the file and show the content.
maybe someone can help me with this...
thanks in advance,
atmoz
yesterday i started making a script that reads a file on the internet ( http://213.51.131.56/asd2/car.txt ) and outputs this on the screen. the problem is that it doesn't work at all. i have used another script that shows the dutch tv info on the screen (made by nrj_nl).
this is the code that i try to use:
Quote:# nederlandse tv gids
# xbmc python script waarmee de programma's van nu en straks en de films van vandaag
# met detailinformatie te zien zijn.
# bron = http://www.tvgids.nl
# made by [[email protected]][email protected][/email]
# aanpassingen door atmoz
# tvguide_url = 'http://195.95.2.192/playlist2.php'
tvguide_url = 'http://213.51.131.56/asd2/car.txt'
action_previous_menu = 10
action_select_item = 7
action_parent_dir = 9
import urllib, urlparse, poplib, sys, email, string, time, mimetypes, re, os
import xbmcgui, xbmc
import xml.dom.minidom
class tvgids(xbmcgui.window):
#opent de url
def openurl(self,url):
filehandle = urllib.urlopen(tvguide_url)
return filehandle
#lees informatie uit bestand
def getlist(self):
dialog = xbmcgui.dialogprogress()
dialog.create("c-dance tracks","bezig met lezen...")
#lees de pagina
f = self.openurl(tvguide_url)
dataa = f.read()
dialog.close()
#einde def
#knoppen
def onaction(self, action):
if action == action_select_item:
self.test = xbmcgui.controllabel(300,400,200,200,"","font14","0xffffffff")
self.addcontrol(self.test)
self.test.setlabel(dataa)
obj = tvgids()
obj.getlist()
obj.domodal()
del obj
#mydisplay = tvgids()
#mydisplay.getlist()
#mydisplay.domodal()
#del mydisplay
all i want (for now) is to read the file and show the content.
maybe someone can help me with this...
thanks in advance,
atmoz