mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-30 11:38:30 -07:00
added Torrent label to userscript options. fixes #262
This commit is contained in:
parent
4c68fd2fd9
commit
93f2f75cdc
2 changed files with 7 additions and 4 deletions
|
@ -251,7 +251,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
|
||||
if (inputCategory in user_script_categories and not "NONE" in user_script_categories) or ("ALL" in user_script_categories and not inputCategory in processCategories):
|
||||
Logger.info("MAIN: Processing user script %s.", user_script)
|
||||
result = external_script(outputDestination,inputName)
|
||||
result = external_script(outputDestination,inputName,inputCategory)
|
||||
elif status == int(0) or (inputCategory in hpCategory + mlCategory + gzCategory): # if movies linked/extracted or for other categories.
|
||||
Logger.debug("MAIN: Calling autoProcess script for successful download.")
|
||||
status = int(0) # hp, my, gz don't support failed.
|
||||
|
@ -343,7 +343,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
Logger.debug("media/meta file found: %s", item)
|
||||
Logger.info("MAIN: All done.")
|
||||
|
||||
def external_script(outputDestination,torrentName):
|
||||
def external_script(outputDestination,torrentName,torrentLabel):
|
||||
|
||||
final_result = int(0) # start at 0.
|
||||
num_files = int(0)
|
||||
|
@ -368,6 +368,9 @@ def external_script(outputDestination,torrentName):
|
|||
elif param == "TN":
|
||||
command.append(torrentName)
|
||||
continue
|
||||
elif param == "TL":
|
||||
command.append(torrentLabel)
|
||||
continue
|
||||
elif param == "DN":
|
||||
if user_script_runOnce == 1:
|
||||
command.append(outputDestination)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue