Author: andar

Revision: 5361

Log:
        Fix remote torrent add in the webui

Diff:
Modified: branches/1.1.0_RC/ChangeLog
===================================================================
--- branches/1.1.0_RC/ChangeLog 2009-06-08 20:14:48 UTC (rev 5360)
+++ branches/1.1.0_RC/ChangeLog 2009-06-08 21:26:17 UTC (rev 5361)
@@ -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

Modified: branches/1.1.0_RC/deluge/ui/webui/pages.py
===================================================================
--- branches/1.1.0_RC/deluge/ui/webui/pages.py  2009-06-08 20:14:48 UTC (rev 
5360)
+++ branches/1.1.0_RC/deluge/ui/webui/pages.py  2009-06-08 21:26:17 UTC (rev 
5361)
@@ -379,12 +379,12 @@
             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)
 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to