Page 1 of 1

[JSON API] Label plugin: json rpc methods?

Posted: Mon Mar 26, 2012 5:21 pm
by tb220
Hi, I am developing a python script that attempts to remote control a deluge instance through the jsonrpc API of the webui.

I would be very grateful if someone could tell me if there are methods I can use to control the label plugin, e.g. to create a new label and assign it to a torrent.

For example. core.get_session_state() will return the list of infohashes of a deluge instance. Is there a method like label.create(...) that will create a label?

Thanks in advance!

Re: Label plugin: json rpc methods?

Posted: Tue Mar 27, 2012 10:32 pm
by Cas
Use the exported RPC methods listed in label core: http://git.deluge-torrent.org/deluge/tr ... 1.3-stable

so you would be using label.add, label.get_labels, etc.

Re: Label plugin: json rpc methods?

Posted: Sat Mar 31, 2012 6:08 pm
by tb220
Thanks, it works fine!

Re: Label plugin: json rpc methods?

Posted: Wed Sep 23, 2015 4:14 pm
by AlxAlxV
Hey,

Is there a way like that to get a torrent label by torrent by torrent hash or filename ?

Like torrent.getLabel(torrenthash)

Thanks