[JSON API] Label plugin: json rpc methods?

Suggest, post, or discuss plugins for Deluge
tb220

[JSON API] Label plugin: json rpc methods?

Postby tb220 » Mon Mar 26, 2012 5:21 pm

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: 3466
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Label plugin: json rpc methods?

Postby Cas » Tue Mar 27, 2012 10:32 pm

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?

Postby tb220 » Sat Mar 31, 2012 6:08 pm

Thanks, it works fine!

AlxAlxV
Member
Member
Posts: 19
Joined: Tue Nov 12, 2013 12:36 pm
OS or Distro: Raspbian

Re: Label plugin: json rpc methods?

Postby AlxAlxV » Wed Sep 23, 2015 4:14 pm

Hey,

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

Like torrent.getLabel(torrenthash)

Thanks


Return to “Plugins”

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests