diff options
Diffstat (limited to 'deluge/ui/gtkui/preferences.py')
-rw-r--r-- | deluge/ui/gtkui/preferences.py | 6 |
1 files changed, 3 insertions, 3 deletions
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() |