mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
Fix remote torrent add in the webui
This commit is contained in:
parent
324eb1d483
commit
dc7fcddecd
2 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
|||
=== Deluge 1.1.9 - (In Development) ===
|
||||
==== GtkUI ====
|
||||
* Fix #950 renaming a parent folder into multiple folders
|
||||
|
||||
==== WebUI ====
|
||||
* Fix remote torrent add
|
||||
|
||||
=== Deluge 1.1.8 - (21 May 2009) ===
|
||||
==== Core ====
|
||||
* Fix pause all/resume all
|
||||
|
|
|
@ -379,12 +379,12 @@ class remote_torrent_add:
|
|||
return 'error:wrong password'
|
||||
|
||||
if vars.data_b64: #b64 post (greasemonkey)
|
||||
data_b64 = unicode(vars.data_b64)
|
||||
data_b64 = base64.decodestring(unicode(vars.data_b64))
|
||||
torrent_name = vars.torrent_name
|
||||
else: #file-post (curl)
|
||||
data_b64 = base64.b64encode(vars.torrent.file.read())
|
||||
torrent_name = vars.torrent.filename
|
||||
proxy.add_torrent_filecontent(torrent_name, data_b64)
|
||||
proxy.add_torrent_file_binary(torrent_name, data_b64)
|
||||
return 'ok'
|
||||
route("/remote/torrent/add(.*)", remote_torrent_add)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue