[JSON API] Label plugin: json rpc methods?

Suggest, post, or discuss plugins for Deluge
Post Reply
tb220

[JSON API] Label plugin: json rpc methods?

Post 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!
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Label plugin: json rpc methods?

Post 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.
tb220

Re: Label plugin: json rpc methods?

Post by tb220 »

Thanks, it works fine!
AlxAlxV
Member
Member
Posts: 19
Joined: Tue Nov 12, 2013 12:36 pm

Re: Label plugin: json rpc methods?

Post 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
Post Reply