2007-09-26, 11:05
IMDb Updater: I was wondering if anyone knows how to add the "Clean Library" function to this bit of code. I move video files (TV and Movie) in and out of my videos share on a regular basis. The IMDB Updater was a great help (thanx to whom ever that was) but it doesn't always remove things I've deleted. I have to run "Clean Library" for that. I'd like to run that then the "Update library" fuction... I'm no programmer...
Thanx for any help with this...
Code:
import threading, thread, time
class update:
def __init__(self):
self.busy = 1
xbmc.executebuiltin("xbmc.updatelibrary(video)")
subThread = threading.Thread(target=self.SubthreadProc, args=())
subThread.start()
def SubthreadProc(self):
if self.busy:
self.busy = 0
while 1:
w = update()
del w
time.sleep(43200)
Thanx for any help with this...
Code:
import threading, thread, time
class update:
def __init__(self):
self.busy = 1
xbmc.executebuiltin("xbmc.updatelibrary(video)")
subThread = threading.Thread(target=self.SubthreadProc, args=())
subThread.start()
def SubthreadProc(self):
if self.busy:
self.busy = 0
while 1:
w = update()
del w
time.sleep(43200)