From fb1d7cfece2fae78fd5ac429e8d191992c2d7911 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 3 Nov 2009 03:25:57 +0000 Subject: [PATCH] Fix adding torrents from the Queued Torrents dialog --- deluge/ui/gtkui/queuedtorrents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/queuedtorrents.py b/deluge/ui/gtkui/queuedtorrents.py index f70c5e2aa..77e0dac4c 100644 --- a/deluge/ui/gtkui/queuedtorrents.py +++ b/deluge/ui/gtkui/queuedtorrents.py @@ -33,7 +33,7 @@ # # - +import base64 import os.path import gtk, gtk.glade @@ -191,7 +191,7 @@ class QueuedTorrents(component.Component): else: client.core.add_torrent_file( os.path.split(torrent_path)[-1], - base64.encodestring(open(torrent_path).read()), + base64.encodestring(open(torrent_path, "rb").read()), None) self.liststore.foreach(add_torrent, None)