-
Notifications
You must be signed in to change notification settings - Fork 28
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
The add_torrent method is not adding torrent #26
Comments
I checked my message through fiddler and I'm still not sure what is wrong:
Body:
Response: |
Hi, First of all please verify that https://github.com/idlesign/deluge-webapi/blob/master/webapi/test.py is passing, that'd help you to make sure that configuration is proper. |
The python test script passes: ================== RESTART: C:/Users/riiskyy/Desktop/test.py ================== |
Ok, you may try to use the latest version or take a note on passing the args, as it's done here: |
I cannot use 0.4.0 because the version of deluge that I am running is not compatible (I had already tried installing those .egg files). And that link is what I used to make sure my json payload was properly formated and I was passing the parameters correctly. The output from that function gives me
Which, as you can see from my output from fiddler, is the same as the payload I am sending through my own application. Yet I still get no errors, but nothing added to deluge. I also double checked the magnet link I am sending in the payload and if I manually add the magnet link to deluge it is recognised and added to the download queue. |
I see. In such cases it's best to run deluge in DEBUG mode and see logs to clear things up. My guess is: magnets expected by Deluge are |
So I've tried out some more things that will hopefully help find the issue. Firstly maybe some context will help. I am using Jackett as an indexer for my sites. Jackett generates and xml 'torznab' feed which is where I am pulling information about my torrents (including the download url which will be in the format The above method is also how Sonarr adds torrents to deluge, except instead of using a After going over my deluge logs I found that when I try and add a torrent I get the following error in the logs:
As you suggested that it could be expecting the
Step 2 gave me the following string However even after this, the torrent was still not added to deluge, I tried using the same When I looked back over my deluge logs, the times I had tried to add the file using the decoded utf-8 output of the torrent file I had different errors:
Once I removed the I have also tired without adding a path for where to download the torrent to so it would just use the default set in deluge. But this also did not work. I'm not sure what the issue is here as the following are all true:
|
I suspect that Deluge automatically fetches contents from your So your option would be to download the .torrent manually (e.g. using You may also make |
Hmm, maybe. I will have to do some digging as the deluge client is hosted on a server that I do not have root access to and my calls to the deluge-api are coming from a slack bot coded using PowerShell. My knowledge of python allows me to sumble my way through reading it and running some basic stuff, but probably not enough to write a fix. |
Hi,
Using the add_torrent method I get a response from the api, however the result and error fields are blank and the torrent is not added. You'll have to bear with me as I'm using powershell for this.
Payload:
I then run the following command to add the magnet link to the webui:
Invoke-RestMethod $DelugeApi -WebSession $session -Body $JsonQuery -Method Post -ContentType 'application/json'
The output returned from this is as follows:
If I call the check_session method I can see I'm still authenticated:
I'm not sure if it's an issue with the magnet link that would cause this or if it is something else?
The text was updated successfully, but these errors were encountered: