deluge-webapi
deluge-webapi copied to clipboard
get_torrents extra info
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
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