mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +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) ===
|
=== Deluge 1.1.9 - (In Development) ===
|
||||||
|
==== GtkUI ====
|
||||||
* Fix #950 renaming a parent folder into multiple folders
|
* Fix #950 renaming a parent folder into multiple folders
|
||||||
|
|
||||||
|
==== WebUI ====
|
||||||
|
* Fix remote torrent add
|
||||||
|
|
||||||
=== Deluge 1.1.8 - (21 May 2009) ===
|
=== Deluge 1.1.8 - (21 May 2009) ===
|
||||||
==== Core ====
|
==== Core ====
|
||||||
* Fix pause all/resume all
|
* Fix pause all/resume all
|
||||||
|
|
|
@ -379,12 +379,12 @@ class remote_torrent_add:
|
||||||
return 'error:wrong password'
|
return 'error:wrong password'
|
||||||
|
|
||||||
if vars.data_b64: #b64 post (greasemonkey)
|
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
|
torrent_name = vars.torrent_name
|
||||||
else: #file-post (curl)
|
else: #file-post (curl)
|
||||||
data_b64 = base64.b64encode(vars.torrent.file.read())
|
data_b64 = base64.b64encode(vars.torrent.file.read())
|
||||||
torrent_name = vars.torrent.filename
|
torrent_name = vars.torrent.filename
|
||||||
proxy.add_torrent_filecontent(torrent_name, data_b64)
|
proxy.add_torrent_file_binary(torrent_name, data_b64)
|
||||||
return 'ok'
|
return 'ok'
|
||||||
route("/remote/torrent/add(.*)", remote_torrent_add)
|
route("/remote/torrent/add(.*)", remote_torrent_add)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue