From f85f355c077725b5f435389cf128e43f2a8b2d84 Mon Sep 17 00:00:00 2001 From: beneri Date: Sat, 26 May 2018 09:58:07 +0200 Subject: [PATCH] add support for authentication in transmission --- pirate/pirate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pirate/pirate.py b/pirate/pirate.py index 1e20007..6032dca 100755 --- a/pirate/pirate.py +++ b/pirate/pirate.py @@ -154,6 +154,8 @@ def parse_args(args_in): help='open magnets with transmission-remote') parser.add_argument('-P', '--port', dest='port', help='transmission-remote rpc port. default is 9091') + parser.add_argument('-A', '--auth', dest='auth', + help='transmission-remote rpc authentication, ') parser.add_argument('-C', '--custom', dest='command', help='open magnets with a custom command' ' (%%s will be replaced with the url)') @@ -217,6 +219,9 @@ def combine_configs(config, args): args.transmission_command = ['transmission-remote'] if 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' if args.transmission or config.getboolean('Misc', 'transmission'):