anything left out uses the daemon's core.conf defaults
the torrent id
Checks current session is valid
true if valid
Connects deluge and returns a list of available methods
OptionalselectedHost: stringindex of host to use in result of get hosts
plugin name, an array is still accepted but deluge only reads one name
Disconnects deluge - warning all instances connected to this client will also be disconnected. Other instances may also reconnect. Not really sure why you would want to disconnect
Download a torrent from url, pass the result to Deluge.addTorrent
file path
plugin name, an array is still accepted but deluge only reads one name
Export the current state of the client. Can be restored with createFromState.
Returns all torrent data. Data has been normalized
Free bytes at path, -1 when the path doesn't exist https://github.com/deluge-torrent/deluge/blob/deluge-2.2.0/deluge/core/core.py#L1244
Optionalpath: string
defaults to the download location
Gets host status
pass host id from this.getHosts()
Parses a magnet uri for its hash, name and trackers
plugin name, an array is still accepted but deluge only reads one name
Throws a TorrentClientError with the torrent_not_found code when the torrent doesn't exist
used to get torrent info before adding
use path returned from upload torrent looks like '/tmp/delugeweb-DfEsgR/tmpD3rujY.torrent'
get torrent state/status
fields ex - ['label']
returns the version ex - 2.0.3-2-201906121747-ubuntu18.04.1
Lists methods
disable or enable auth connection
a list of method names
Login deluge
true if success
Logout deluge
true if success
Moves the torrent data, returns before the move finishes
Pauses every torrent
Pause one or more torrents, clients resolve with void. Throws torrent_not_found when a torrent doesn't exist
Move one or more torrents down the queue, clients resolve with void. Throws torrent_not_found when a torrent doesn't exist, throws when the client has no queue
Move one or more torrents up the queue, clients resolve with void. Throws torrent_not_found when a torrent doesn't exist, throws when the client has no queue
(default: false) If true, remove the data from disk
Renames files in a torrent, libtorrent renames them async so the new names can take a moment to show up
[fileIndex, newPath] pairs, the path can include folders
Renames a folder by renaming every file under it
ex - 'folder/'
an empty string moves the contents up to the parent folder
Resume one or more torrents, clients resolve with void. Throws torrent_not_found when a torrent doesn't exist
Staticcreate
anything left out uses the daemon's core.conf defaults