mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
fix indentation
This commit is contained in:
parent
c047974223
commit
560d31e5e1
1 changed files with 7 additions and 9 deletions
|
@ -23,19 +23,17 @@ if len(sys.argv) == 8:
|
||||||
# 5 User-defined category
|
# 5 User-defined category
|
||||||
# 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 autoProcessMusic...")
|
Logger.info("Script triggered from SABnzbd, starting autoProcessMusic...")
|
||||||
result = autoProcessMusic.process(sys.argv[1], sys.argv[2], sys.argv[7])
|
result = autoProcessMusic.process(sys.argv[1], sys.argv[2], sys.argv[7])
|
||||||
|
|
||||||
# NZBGet
|
# NZBGet
|
||||||
elif len(sys.argv) == 4:
|
elif len(sys.argv) == 4:
|
||||||
# NZBGet argv:
|
# NZBGet argv:
|
||||||
# 1 The final directory of the job (full path)
|
# 1 The final directory of the job (full path)
|
||||||
# 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 autoProcessMusic...")
|
Logger.info("Script triggered from NZBGet, starting autoProcessMusic...")
|
||||||
result = autoProcessMusic.process(sys.argv[1], sys.argv[2], sys.argv[3])
|
result = autoProcessMusic.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 autoProcessMusic as a manual run...")
|
Logger.info("Running autoProcessMusic as a manual run...")
|
||||||
result = autoProcessMusic.process('Manual Run', 'Manual Run', 0)
|
result = autoProcessMusic.process('Manual Run', 'Manual Run', 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue