1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Merge pull request #54 from jebaum/fix-duplicate-print

fix duplicate printing when adding multiple torrents at once
This commit is contained in:
Viktor Stanchev 2015-08-04 08:06:10 -07:00
commit 9fa87ac334

View File

@ -679,8 +679,7 @@ def main():
url = mags[int(choice)][0] url = mags[int(choice)][0]
if args.transmission or config.getboolean('Misc', 'transmission'): if args.transmission or config.getboolean('Misc', 'transmission'):
subprocess.call(transmission_command + ['-l', '--add', url], shell=False) subprocess.call(transmission_command + ['--add', url], shell=False)
subprocess.call(transmission_command + ['-l'])
elif args.command or config.get('Misc', 'openCommand'): elif args.command or config.get('Misc', 'openCommand'):
command = config.get('Misc', 'openCommand') command = config.get('Misc', 'openCommand')
@ -691,6 +690,9 @@ def main():
else: else:
webbrowser.open(url) webbrowser.open(url)
if args.transmission or config.getboolean('Misc', 'transmission'):
subprocess.call(transmission_command + ['-l'])
if __name__ == '__main__': if __name__ == '__main__':
main() main()