improve passing of download_id

This commit is contained in:
clinton-hall 2013-04-08 15:00:49 +09:30
commit 3b076a5cfa
15 changed files with 93 additions and 42 deletions

View file

@ -39,9 +39,11 @@ elif len(sys.argv) == NZBGET_NO_OF_ARGUMENTS:
# 1 The final directory of the job (full path)
# 2 The original name of the NZB file
# 3 The status of the download: 0 == successful
# 4 The category of the download:
# 5 The download_id
Logger.info("Script triggered from NZBGet, starting autoProcessMovie...")
clientAgent = "nzbget"
result = autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[3], clientAgent)
result = autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[3], clientAgent, sys.argv[5])
else:
Logger.warn("Invalid number of arguments received from client.")
Logger.info("Running autoProcessMovie as a manual run...")