Cleaning library

Hello People, I’m working on a shell script to cleanup my TV show folder, and I’ve been digging through the code and cant find which command is being used to clean the video library ?



Can this be done from the terminal ? like it can with update?



/mkh



In theory yes, you can call it via the HTTP API.
CleanLibrary(database)
http://wiki.xbmc.org/index.php?title=List_of_Built_In_Functions

But it doesn't actually work, as far as I can tell. The UpdateLibrary() command works via HTTP API, but the CleanLibrary() command does not. Nor does the flag to clean-on-update seem to remove things, at least not on any of my systems.

If you find a workaround for either problem I'd be happy to hear about it. As it stands I'm manually running the clean from the GUI, the waiting while it ties up the foreground, several times a week.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.