mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
added all params to external script. fixes #185
This commit is contained in:
parent
80a0a6f28d
commit
05f7f90b15
2 changed files with 7 additions and 4 deletions
|
@ -278,12 +278,15 @@ def external_script(outputDestination):
|
|||
if param == "FN":
|
||||
command.append(file)
|
||||
continue
|
||||
if param == "FP":
|
||||
elif param == "FP":
|
||||
command.append(filePath)
|
||||
continue
|
||||
if param == "DN":
|
||||
elif param == "DN":
|
||||
command.append(dirpath)
|
||||
continue
|
||||
else:
|
||||
command.append(param)
|
||||
continue
|
||||
Logger.info("Running script %s on file %s.", command, filePath)
|
||||
try:
|
||||
p = Popen(command)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue