mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Get result back from autoProcessMovie
We don't do anything with it... yet ;)
This commit is contained in:
parent
5d4629b253
commit
f532091de5
1 changed files with 3 additions and 4 deletions
|
@ -24,7 +24,7 @@ if len(sys.argv) == 8:
|
||||||
# 6 Group that the NZB was posted in e.g. alt.binaries.x
|
# 6 Group that the NZB was posted in e.g. alt.binaries.x
|
||||||
# 7 Status of post processing. 0 = OK, 1=failed verification, 2=failed unpack, 3=1+2
|
# 7 Status of post processing. 0 = OK, 1=failed verification, 2=failed unpack, 3=1+2
|
||||||
Logger.info("Script triggered from SABnzbd, starting autoProcessMovie...")
|
Logger.info("Script triggered from SABnzbd, starting autoProcessMovie...")
|
||||||
autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[7])
|
result = autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[7])
|
||||||
|
|
||||||
# NZBGet
|
# NZBGet
|
||||||
elif len(sys.argv) == 4:
|
elif len(sys.argv) == 4:
|
||||||
|
@ -33,10 +33,9 @@ elif len(sys.argv) == 4:
|
||||||
# 2 The original name of the NZB file
|
# 2 The original name of the NZB file
|
||||||
# 3 The status of the download: 0 == successful
|
# 3 The status of the download: 0 == successful
|
||||||
Logger.info("Script triggered from NZBGet, starting autoProcessMovie...")
|
Logger.info("Script triggered from NZBGet, starting autoProcessMovie...")
|
||||||
|
result = autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[3])
|
||||||
autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[3])
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
Logger.warn("Invalid number of arguments received from client.")
|
Logger.warn("Invalid number of arguments received from client.")
|
||||||
Logger.info("Running autoProcessMovie as a manual run...")
|
Logger.info("Running autoProcessMovie as a manual run...")
|
||||||
autoProcessMovie.process('Manual Run', 'Manual Run', 0)
|
result = autoProcessMovie.process('Manual Run', 'Manual Run', 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue