Search found 6 matches
- Fri Mar 17, 2017 1:29 am
- Forum: Support
- Topic: 1.3.14 Cannot add url via json api
- Replies: 5
- Views: 5620
Re: 1.3.14 Cannot add url via json api
Yeah, that fixed me up. Thanks for the help, much appreciated :D With a cursory glance over the entire api it doesn't seem possible to download the url and load it into Deluge in one command. Am I being dumb again or is this not possible? Have you considered adding the ability to do this? I know it ...
- Wed Mar 15, 2017 9:37 pm
- Forum: Support
- Topic: 1.3.14 Cannot add url via json api
- Replies: 5
- Views: 5620
Re: 1.3.14 Cannot add url via json api
I am setting the header according to that thread. I can add magnet URIs fine, just not .torrent URLs. The full(-ish) code I use is: headers = {'Content-Type': 'application/json', 'User-Agent': 'Watcher'} url = 'http://localhost:8112/json' command = {'method': 'web.add_torrents', 'params': [[torrent]...
- Mon Mar 13, 2017 6:32 pm
- Forum: Support
- Topic: 1.3.14 Cannot add url via json api
- Replies: 5
- Views: 5620
1.3.14 Cannot add url via json api
Using 1.3.14 I can no longer submit a torrent url. With prior versions I would send a request to the json api similar to this: torrent = {'path': 'www.torrentsite.com/file.torrent'} command = {'method': 'web.add_torrents', 'params': [[torrent]], 'id': command_id } command_id += 1 request = urllib2.R...
- Tue Jan 24, 2017 12:43 am
- Forum: Support
- Topic: Reading response from webui/json
- Replies: 4
- Views: 2424
Re: Reading response from webui/json
Yeah, I'm kind of dumb.
Everything is working fine now. Thanks for the pointers.
Everything is working fine now. Thanks for the pointers.
- Mon Jan 23, 2017 11:11 pm
- Forum: Support
- Topic: Reading response from webui/json
- Replies: 4
- Views: 2424
Re: Reading response from webui/json
I can get the cookie from the response header, but I can't find any json in the response.
If I do a basic response.read() I get something like this:
If I do a basic response.read() I get something like this:
Code: Select all
½V╩LQ▓R0╨QP*J-.═)r≥JsrÇⁿ╘óóⁿ" ╖Z)7╡╕81=╚V≥╦/QH,-╔H═+╔LN,IMQ¬L╬OI╓╓ U8╖0O
- Mon Jan 23, 2017 8:48 pm
- Forum: Support
- Topic: Reading response from webui/json
- Replies: 4
- Views: 2424
Reading response from webui/json
I'm using python to connect to the web ui. I can log in fine, but if I supply an in correct password the response is always 'OK' as well, which isn't super helpful. url = 'http://localhost:8112/json' command = {'method': 'auth.login', 'params': [password], 'id': command_id } command_id += 1 command ...