mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
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
This commit is contained in:
parent
fd1149aea1
commit
3237336775
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue