mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
add support for authentication in transmission
This commit is contained in:
parent
748539a037
commit
f85f355c07
@ -154,6 +154,8 @@ def parse_args(args_in):
|
|||||||
help='open magnets with transmission-remote')
|
help='open magnets with transmission-remote')
|
||||||
parser.add_argument('-P', '--port', dest='port',
|
parser.add_argument('-P', '--port', dest='port',
|
||||||
help='transmission-remote rpc port. default is 9091')
|
help='transmission-remote rpc port. default is 9091')
|
||||||
|
parser.add_argument('-A', '--auth', dest='auth',
|
||||||
|
help='transmission-remote rpc authentication, <user:pw>')
|
||||||
parser.add_argument('-C', '--custom', dest='command',
|
parser.add_argument('-C', '--custom', dest='command',
|
||||||
help='open magnets with a custom command'
|
help='open magnets with a custom command'
|
||||||
' (%%s will be replaced with the url)')
|
' (%%s will be replaced with the url)')
|
||||||
@ -217,6 +219,9 @@ def combine_configs(config, args):
|
|||||||
args.transmission_command = ['transmission-remote']
|
args.transmission_command = ['transmission-remote']
|
||||||
if args.port:
|
if args.port:
|
||||||
args.transmission_command.append(args.port)
|
args.transmission_command.append(args.port)
|
||||||
|
if args.auth:
|
||||||
|
args.transmission_command.append('--auth')
|
||||||
|
args.transmission_command.append(args.auth)
|
||||||
|
|
||||||
args.output = 'browser_open'
|
args.output = 'browser_open'
|
||||||
if args.transmission or config.getboolean('Misc', 'transmission'):
|
if args.transmission or config.getboolean('Misc', 'transmission'):
|
||||||
|
Loading…
Reference in New Issue
Block a user