From 3ce8e304c4ecd5b66531a3d5cafa425802b10311 Mon Sep 17 00:00:00 2001 From: James Baumgarten Date: Tue, 4 Aug 2015 00:53:26 -0700 Subject: [PATCH] fix duplicate printing when adding multiple torrents at once --- pirate-get.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pirate-get.py b/pirate-get.py index 4a9aeaa..d542f13 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -679,8 +679,7 @@ def main(): url = mags[int(choice)][0] if args.transmission or config.getboolean('Misc', 'transmission'): - subprocess.call(transmission_command + ['-l', '--add', url], shell=False) - subprocess.call(transmission_command + ['-l']) + subprocess.call(transmission_command + ['--add', url], shell=False) elif args.command or config.get('Misc', 'openCommand'): command = config.get('Misc', 'openCommand') @@ -691,6 +690,9 @@ def main(): else: webbrowser.open(url) + if args.transmission or config.getboolean('Misc', 'transmission'): + subprocess.call(transmission_command + ['-l']) + if __name__ == '__main__': main()