From 323733677572579bcb2e2122d8f5672e78b9516d Mon Sep 17 00:00:00 2001 From: TheHolyRoger <39387497+TheHolyRoger@users.noreply.github.com> Date: Sat, 8 Jun 2019 00:20:12 +0100 Subject: [PATCH] Don't replace apostrophes in qBittorrent input_name Don't replace apostrophes in qBittorrent input_name - only trim if found at beginning/end of string. This stops nzbtomedia processing the entire download folder when asked to process a folder with apostrophes in the title --- core/utils/parsers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/utils/parsers.py b/core/utils/parsers.py index 981de146..fd88ec63 100644 --- a/core/utils/parsers.py +++ b/core/utils/parsers.py @@ -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: