2013-09-26, 07:56
I'm sure this has been done before, but I ran into a small problem and was wondering if you people might point me to the right direction.
I've added a bash file to autoprocess.py (sickbeard) that finds a directory and deletes any file older than 7 days.
I used this:
subprocess.call("./TVShowEliminate.sh", shell=True)
The problem is that XBMC still lists the older files that were previously added.
So I've tried to use the XBMC RPC according to: http://wiki.xbmc.org/index.php?title=HOW...te_library
I've added this line to a bash file:
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:9090/jsonrpc
I replaced the 9191 (as in the wiki) with 9090. I'm hoping this is correct. I've enabled the service too.
However, when I put it in the terminal it hangs. Nothing happens.
The problem with update.clean is that since my shares are on the Network, potentially if my NAS is down, XBMC will probably remve all of the files from the library.
could anybody offer pointers?
I've added a bash file to autoprocess.py (sickbeard) that finds a directory and deletes any file older than 7 days.
I used this:
subprocess.call("./TVShowEliminate.sh", shell=True)
The problem is that XBMC still lists the older files that were previously added.
So I've tried to use the XBMC RPC according to: http://wiki.xbmc.org/index.php?title=HOW...te_library
I've added this line to a bash file:
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:9090/jsonrpc
I replaced the 9191 (as in the wiki) with 9090. I'm hoping this is correct. I've enabled the service too.
However, when I put it in the terminal it hangs. Nothing happens.
The problem with update.clean is that since my shares are on the Network, potentially if my NAS is down, XBMC will probably remve all of the files from the library.
could anybody offer pointers?