mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
Fix adding torrents when not showing the add torrent dialog in Windows
This commit is contained in:
parent
7c10dd4c0e
commit
ee7f4e452d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue