public
anonymous / dlist
Created

  • Download Gist
dlist
Python
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
dmagnet
Python
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:], [])

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.