mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
wrap paths and names in quotes. Fixes #461
This commit is contained in:
parent
88b101856e
commit
663cd22934
1 changed files with 6 additions and 6 deletions
|
@ -59,22 +59,22 @@ def external_script(outputDestination, torrentName, torrentLabel, settings):
|
||||||
command = [nzbtomedia.USER_SCRIPT]
|
command = [nzbtomedia.USER_SCRIPT]
|
||||||
for param in nzbtomedia.USER_SCRIPT_PARAM:
|
for param in nzbtomedia.USER_SCRIPT_PARAM:
|
||||||
if param == "FN":
|
if param == "FN":
|
||||||
command.append(file)
|
command.append('%s' % file)
|
||||||
continue
|
continue
|
||||||
elif param == "FP":
|
elif param == "FP":
|
||||||
command.append(filePath)
|
command.append('%s' % filePath)
|
||||||
continue
|
continue
|
||||||
elif param == "TN":
|
elif param == "TN":
|
||||||
command.append(torrentName)
|
command.append('%s' % torrentName)
|
||||||
continue
|
continue
|
||||||
elif param == "TL":
|
elif param == "TL":
|
||||||
command.append(torrentLabel)
|
command.append('%s' % torrentLabel)
|
||||||
continue
|
continue
|
||||||
elif param == "DN":
|
elif param == "DN":
|
||||||
if nzbtomedia.USER_SCRIPT_RUNONCE == 1:
|
if nzbtomedia.USER_SCRIPT_RUNONCE == 1:
|
||||||
command.append(outputDestination)
|
command.append('%s' % outputDestination)
|
||||||
else:
|
else:
|
||||||
command.append(dirpath)
|
command.append('%s' % dirpath)
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
command.append(param)
|
command.append(param)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue