[Part 2] Download torrent & newsserver package(s)
|
7th May, 2013, 07:13 PM
Post: #158
|
|||
|
|||
RE: [Part 2] Download torrent & newsserver package(s)
Thanks, I figured it out via old XBMC topics. HTTP API is deprecated so this is the JSON command to update a specific folder:
Terminal curl -v -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":5,"jsonrpc":"2.0","method":"VideoLibrary.Scan","params":{"directory":"/media/usb/TV Shows/"}}' http://192.168.1.1:8080/jsonrpc or via browser(!): Terminal http://192.168.1.1:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "5", "params": {"directory":"/media/usb/TV Shows/"}} And to let Transmission pass the folder of the downloaded torrent, use this parameter as directory (untested): $TR_TORRENT_DIR Since I am still very noobish, I have not figured out how to run the curl command or the url via ssh (or actually via an .sh script). "curl" is not available on XBian and I do not want to install it. Calling an url is ofcourse not working in SSH since you need a browser to process it. Transmission needs a script to run and it should be easy.. --- EDIT: Transmission does not run any .sh script it seems Transmission has no rights to run a script? How can I change this? all my script contains now (as a test) is: echo $TR_TORRENT_DIR/$TR_TORRENT_NAME >> media/usb/Downloads/autoconverted.log |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[Part 3] Download torrent & newsserver packages | Fred | 221 | 885,696 |
18th Mar, 2016 03:00 PM Last Post: akitolong |
|
Download Package not installing | naverave | 3 | 13,872 |
16th Mar, 2014 07:56 PM Last Post: mk01 |
|
download package setup | pathia | 5 | 18,846 |
28th Sep, 2013 12:00 AM Last Post: Gemma01 |
|
Download package | enzu1 | 1 | 9,124 |
4th Feb, 2013 10:35 PM Last Post: CurlyMo |