Posts: 24
Joined: May 2004
Reputation:
0
hi, i have never coded any python, but in urllib urlopener.retrieve, i can see:
if self.tempcache and url in self.tempcache:
return self.tempcache[url]
so i guess that your content is in cache... ?
since i have not done any py work i do not know how to flush that single file from cache. (or if it is possible to set a no_cache flag on download.)
Posts: 707
Joined: Jul 2004
Reputation:
6
maybe can you try to name your controlimage :
def displaypic(self, source, destination):
if self.downloadurl(source, destination) == 'ok':
self.pic=xbmcgui.controlimage(int((self.getwidth()-self.fullwidth)/2),int((self.getheight()-self.fullheight)/2), self.fullwidth, self.fullheight, destination, '0xffff3300')
self.addcontrol(self.pic)
def onaction(self, action):
if action == action_menu:
self.close()
elif action == action_refresh:
self.removecontrol(self.pic)
self.displaypic(url_webcam, imgpath)
Posts: 10
Joined: Mar 2005
Reputation:
0
ignore the last post, i fixed it!!
uhhh... thanks to formatting of this board, i saw that the self.clock.start() line has spaces instead of tabs before it!!! :lol:
Posts: 707
Joined: Jul 2004
Reputation:
6
lol
somtimes it is boring ... some strings are missing in this board....
but sometimes it is very helpfull !
lol
is your script working fine ?
because you should write a def in the thread to stop it when you exit your script.
if you need it, i will send you an example.
Posts: 10
Joined: Mar 2005
Reputation:
0
yeah i got it working!!! sweet!!!
yeah the thread probably still is running after i exit the script... that's no good! sure, i'd love to see an example!