sane-bt-add: trim trailing space from the input URL
This commit is contained in:
parent
55e2aaf3a1
commit
25c13705cd
|
@ -43,7 +43,7 @@ def main():
|
|||
args = parser.parse_args()
|
||||
meta = MediaMeta.from_arguments(args)
|
||||
bt_api = TransmissionApi.from_arguments(args)
|
||||
torrent = args.torrent
|
||||
torrent = args.torrent.strip()
|
||||
|
||||
torrent = resolve_torrent(torrent)
|
||||
bt_api.add_or_move_torrent(meta, torrent)
|
||||
|
|
Loading…
Reference in New Issue
Block a user