anonymous / dlist
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View dlist
1 2 3 4 5 6 7 8 9
#!/usr/bin/env python
 
from deluge.ui.client import sclient
 
sclient.set_core_uri()
torrent_ids = sclient.get_session_state()
torrents = [sclient.get_torrent_status(id, ["name","paused","ratio","progress","eta"]) for id in torrent_ids]
torrents = sorted(torrents, key=lambda x: x["progress"])
for t in torrents: print t
View dlist
1 2 3 4 5 6 7
#!/usr/bin/env python
 
import sys
from deluge.ui.client import sclient
 
sclient.set_core_uri()
sclient.add_torrent_magnets(sys.argv[1:], [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.