Fix adding torrents when not showing the add torrent dialog in Windows
This commit is contained in:
parent
7c10dd4c0e
commit
ee7f4e452d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue