Skip to content

anonymous /dlist

#!/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
#!/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.