Version 2 (modified by mvoncken, 13 years ago) (diff)

--

Development/UiClient

Random example scripts

Mostly picked up from irc.

shut down daemon

from deluge.ui.client import sclient
sclient.set_core_uri()
sclient.shutdown()

total amount of bytes downloaded

Downloaded:

sum(t["total_done"] for t in sclient.get_torrents_status([],['total_done']).values())