mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
copy 3ce8e304c4
This commit is contained in:
parent
eb4358831d
commit
ecbd264d02
@ -293,8 +293,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])
|
subprocess.call(transmission_command + ['--add', url])
|
||||||
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')
|
||||||
@ -305,6 +304,8 @@ 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user