web update ui method documentation

General support for problems installing or using Deluge
Post Reply
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

web update ui method documentation

Post by raspdealer »

Hi there,

I can't find any documentations with the full list of available parameters for the method web.update_ui.

Is there any full documentation somewhere?

Thanks a lot!
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: web update ui method documentation

Post by Cas »

The source code is where the docs are generated from so can always view that. Webui specific methods are in deluge/ui/web/json_api.py
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: web update ui method documentation

Post by raspdealer »

Thanks but I can't find any list of all attributs of the torrent object.
Can you provide me the list?
label, hash, ...

Thanks
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: web update ui method documentation

Post by Cas »

TorrentOptions class in deluge/core/torrent.py

You can also look at the options attribute for an existing torrent object.
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: web update ui method documentation

Post by raspdealer »

I'm looking for a way to update core settings but something seems wrong and I can't find docs...

'{"method": "core.set_config", "params": [["max_upload_speed": 9000, {}], "id": 1}'

Thanks for helping
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: web update ui method documentation

Post by Cas »

params is not corrects. The config is a dict, the same format as the result from core.get_config.
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: web update ui method documentation

Post by raspdealer »

Do you have an example please?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: web update ui method documentation

Post by Cas »

This should be all you need to change it to:

Code: Select all

{"method": "core.set_config", "params": [{"max_upload_speed": 9000,}], "id": 1}
Post Reply