Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Forked from jonfuller/status.json
Last active May 22, 2018 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonm23/4a5d6d8abd0184e9489da5ee47dd1500 to your computer and use it in GitHub Desktop.
Save jasonm23/4a5d6d8abd0184e9489da5ee47dd1500 to your computer and use it in GitHub Desktop.
Transmission RPC
{"arguments":{"torrents":[{"id":5,"name":"60.Minutes.S50E37.1080p.WEB.x264-CookieMonster[rarbg]","percentDone":0.4061},{"id":6,"name":"Elementary.S06E04.1080p.HDTV.X264-DIMENSION[rarbg]","percentDone":0.1815},{"id":7,"name":"Stephen.Colbert.2018.05.21.Zachary.Quinto.1080p.WEB.x264-TBS[rarbg]","percentDone":0.1827}]},"result":"success"}
{
"arguments": {
"fields": [ "id", "name", "percentDone" ]
},
"method": "torrent-get"
}
{
"arguments": {
},
"method": "torrent-stop"
}
SESSION=$(curl -si http://localhost:9091/transmission/rpc | grep "X-Transmission-Session-Id: " | head -1 | cut -d' ' -f2)
curl -H "X-Transmission-Session-Id: $SESSION" -d @status.json http://localhost:9091/transmission/rpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment