Merge pull request #1625 from TheHolyRoger/patch-3

Don't replace apostrophes in qBittorrent input_name
This commit is contained in:
Clinton Hall 2019-06-08 20:08:21 +12:00 committed by GitHub
commit 81895afd3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,7 +127,11 @@ def parse_qbittorrent(args):
except Exception:
input_directory = ''
try:
input_name = cur_input[1].replace('\'', '')
input_name = cur_input[1]
if input_name[0] == '\'':
input_name = input_name[1:]
if input_name[-1] == '\'':
input_name = input_name[:-1]
except Exception:
input_name = ''
try: