web update ui method documentation

General support for problems installing or using Deluge
raspdealer
Leecher
Leecher
Posts: 50
Joined: Sun Oct 04, 2015 6:11 pm
OS or Distro: Raspbian

web update ui method documentation

Postby raspdealer » Wed Jul 12, 2017 6:57 pm

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

Re: web update ui method documentation

Postby Cas » Wed Jul 12, 2017 9:29 pm

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: 50
Joined: Sun Oct 04, 2015 6:11 pm
OS or Distro: Raspbian

Re: web update ui method documentation

Postby raspdealer » Thu Jul 13, 2017 4:47 pm

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

Re: web update ui method documentation

Postby Cas » Fri Jul 14, 2017 10:18 am

TorrentOptions class in deluge/core/torrent.py

You can also look at the options attribute for an existing torrent object.

raspdealer
Leecher
Leecher
Posts: 50
Joined: Sun Oct 04, 2015 6:11 pm
OS or Distro: Raspbian

Re: web update ui method documentation

Postby raspdealer » Wed Jul 19, 2017 11:31 am

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

Re: web update ui method documentation

Postby Cas » Thu Jul 20, 2017 7:34 am

params is not corrects. The config is a dict, the same format as the result from core.get_config.

raspdealer
Leecher
Leecher
Posts: 50
Joined: Sun Oct 04, 2015 6:11 pm
OS or Distro: Raspbian

Re: web update ui method documentation

Postby raspdealer » Thu Jul 20, 2017 10:35 am

Do you have an example please?

Cas
Top Bloke
Top Bloke
Posts: 3441
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: web update ui method documentation

Postby Cas » Thu Jul 20, 2017 2:49 pm

This should be all you need to change it to:

Code: Select all

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


Return to “Support”

Who is online

Users browsing this forum: No registered users and 10 guests