-
-
Save jasonm23/4a5d6d8abd0184e9489da5ee47dd1500 to your computer and use it in GitHub Desktop.
Transmission RPC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"arguments": { | |
"fields": [ "id", "name", "percentDone" ] | |
}, | |
"method": "torrent-get" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"arguments": { | |
}, | |
"method": "torrent-stop" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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