2004-02-26, 16:14
thanks for the replies. xbmc.close() did the trick.
Quote:has xbmc/xbmcgui been compilied for windows? i'd like to be able to test code on my pc without pounding out all the dialog/player calls. can i just create xmbc.py and xmbcgui.py with classes that have the same modules/attributes? sorry, if this makes no sense, i'm new to python and oo programming in general.
Quote: req = urllib2.request(url)
req.add_header('authorization', 'basic ')
try:
progress.create("attempting to connect to:\n %s" % url)
time.sleep(2)
urlhandle = urllib2.urlopen(req)
remotedata = urlhandle.read()
urlhandle.close()
return remotedata
(bobrooney_78 @ mar. 03 2004,15:13 Wrote:i am just wondering if it would be possible to port bittorrent as a python-script to xbmc?there's no real interest to do that...
Quote:timeout = 20.0
socket.setdefaulttimeout(timeout)
(alx5962 @ mar. 03 2004,15:51 Wrote:it wouldn't take that long at all, bittorrent is 100% python. i hacked it up to run on xbmc last month, but it froze xbmc's interface while it was running so it wasn't much use, bittorrent was definitely working though as i could still ftp in to xbmc and watch the downloading file grow in size. considering i know almost no python and got it running in an hour or so, i'm sure someone who knew what they were doing could have it running properly very quickly.(bobrooney_78 @ mar. 03 2004,15:13 Wrote:i am just wondering if it would be possible to port bittorrent as a python-script to xbmc?there's no real interest to do that...
and it would need weeks/months of work