Fix adding torrents when not showing the add torrent dialog in Windows

This commit is contained in:
Andrew Resch 2009-10-31 00:08:53 +00:00
parent 7c10dd4c0e
commit ee7f4e452d
1 changed files with 1 additions and 1 deletions

View File

@ -163,4 +163,4 @@ def process_args(args):
component.get("AddTorrentDialog").show(config["focus_add_dialog"])
else:
path = os.path.abspath(arg)
client.core.add_torrent_file(os.path.split(path)[-1], base64.encodestring(open(path).read()), None)
client.core.add_torrent_file(os.path.split(path)[-1], base64.encodestring(open(path, "rb").read()), None)