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: