Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_torrents extra info #33

Open
uxodb opened this issue May 1, 2022 · 1 comment
Open

get_torrents extra info #33

uxodb opened this issue May 1, 2022 · 1 comment
Labels

Comments

@uxodb
Copy link

uxodb commented May 1, 2022

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

@idlesign
Copy link
Owner

idlesign commented May 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants