Page 1 of 1
web update ui method documentation
Posted: Wed Jul 12, 2017 6:57 pm
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!
Re: web update ui method documentation
Posted: Wed Jul 12, 2017 9:29 pm
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
Re: web update ui method documentation
Posted: Thu Jul 13, 2017 4:47 pm
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
Re: web update ui method documentation
Posted: Fri Jul 14, 2017 10:18 am
by Cas
TorrentOptions class in deluge/core/torrent.py
You can also look at the options attribute for an existing torrent object.
Re: web update ui method documentation
Posted: Wed Jul 19, 2017 11:31 am
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
Re: web update ui method documentation
Posted: Thu Jul 20, 2017 7:34 am
by Cas
params is not corrects. The config is a dict, the same format as the result from core.get_config.
Re: web update ui method documentation
Posted: Thu Jul 20, 2017 10:35 am
by raspdealer
Do you have an example please?
Re: web update ui method documentation
Posted: Thu Jul 20, 2017 2:49 pm
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}