I am trying to remotely add a torrent to the web ui in the new version of Deluge 1.1.5r. In version 5.x i can do this fine however when trying exactly the same method it fails with this message:
Code: Select all
error:global name 'base64' is not defined--------------------Traceback (most recent call last): File "/var/lib/python-support/python2.5/deluge/ui/webui/page_decorators.py", line 153, in deco print func(self, name) #remote File "/var/lib/python-support/python2.5/deluge/ui/webui/pages.py", line 372, in POST data_b64 = base64.b64encode(vars.torrent.file.read())NameError: global name 'base64' is not defined
Im sending a POST of a multipart form with the following piece of data
a standard filebody called torrent
a standard stringbody called pwd
and im posting it to /remote/torrent/add
As i said this method works in version 0.5x but im not sure why it isnt working in the newer version.
Any insight would be greatly appreciated
Alec