The HTTP API will be fully depreciated in Eden. Should still be working in Dharma. I can't remember my exact version, but it's Live 10.1 and not a nightly build.
Is this a fresh install and have you had the script working in the past?

#!/usr/bin/python
import jsonrpclib
server = jsonrpclib.Server('http://localhost:8080/jsonrpc')
server.VideoLibrary.ScanForContent()



jadel wrote:Hi guys,
Trying to get the libary update working on my setup. ATV1 (crystalbuntu [ubuntu 8.04]) and pre eden XBMC. I think the last post from Ashex is for pre eden builds but I just have no idea what to do with it.
I read through the whole thread and cant really figure it out. I think most of the scripts are for win 7 yeah?
Anyway any help would be appreciated.
Thanks
#!/usr/bin/python
import jsonrpclib
server = jsonrpclib.Server('http://localhost:8080/jsonrpc')
server.VideoLibrary.Scan()
wget -q -O/dev/null --header='Content-Type: application/json' --post-data='{"jsonrpc": "2.0", "method": "VideoLibrary.Scan"}' http://localhost:8000/jsonrpc


CapnBry wrote:You can do this without using python classes with just wget:
- Code: Select all
wget -q -O/dev/null --header='Content-Type: application/json' --post-data='{"jsonrpc": "2.0", "method": "VideoLibrary.Scan"}' http://localhost:8000/jsonrpc
If you want to see the response, use -O- and add "id": "anything" to the end of the JSON POST data. Tested on Eden 11.0 Beta 1. Also note that my XBMC HTTP server is on port 8000, modify if necessary.
Cannot run script /storage/.xbmc/userdata/addon_data/service.downloadmanager.SABnzbd-Suite/scripts/xbmcupdate.py

#!/usr/bin/python
import urllib
urllib.urlopen("http://localhost:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(UpdateLibrary(video))").close()




RedsGT wrote:I'm really rusty on my Linux skills but I think as a .sh file? With a "#!/bin/sh" header.

Return to Post-Processing Scripts