diff --git a/ChangeLog b/ChangeLog index a7c21994a..c5295e284 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,7 @@ torrent creation * Fix crash in Windows when creating a torrent * Add button to Other preferences to associate magnet links with Deluge + * Fix uploading plugins when the daemon is not localhost ==== Console ==== * Fix using the console in Windows, but only in command-line mode diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index 02b593e6a..74a9b2e3c 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -932,6 +932,7 @@ class Preferences(component.Component): chooser.destroy() return + import base64 import shutil import os.path filename = os.path.split(filepath)[1] @@ -943,9 +944,8 @@ class Preferences(component.Component): if not client.is_localhost(): # We need to send this plugin to the daemon - client.core.upload_plugin( - filename, - xmlrpclib.Binary(open(filepath, "rb").read())) + filedump = base64.encodestring(open(filepath, "rb").read()) + client.core.upload_plugin(filename, filedump) client.core.rescan_plugins() chooser.destroy()