deluge-webapi icon indicating copy to clipboard operation
deluge-webapi copied to clipboard

get_torrents extra info

Open uxodb opened this issue 2 years ago • 1 comments

Im having a hard time supplying params with something else than leaving it empty, if I supply it with for example only "name" the results are empty.

This is what I get back when I supply params with something: {"result": {"torrents": []}, "error": null, "id": 2}

Leaving params empty gives me the name, hash, save_path and comment.

{"method": "webapi.get_torrents", "params": [], "id": 2} <- works {"method": "webapi.get_torrents", "params": ["name"], "id": 2} <- doesnt work

uxodb avatar May 01 '22 03:05 uxodb

In your case you may want to try passing params as a comma-separated string: https://github.com/idlesign/deluge-webapi/blob/master/webapi/webui.py#L39

idlesign avatar May 04 '22 03:05 idlesign