mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +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"])
|
component.get("AddTorrentDialog").show(config["focus_add_dialog"])
|
||||||
else:
|
else:
|
||||||
path = os.path.abspath(arg)
|
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
Add a link
Reference in a new issue