mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Don't post process on certain conditions
We don't want to snatch next release when the error is an NZBGet config problem, or the download hasn't finished yet. In these conditions, the actual download may be recoverable.
This commit is contained in:
parent
8f2a43d803
commit
f7b3d60496
1 changed files with 3 additions and 3 deletions
|
@ -173,7 +173,7 @@ if [ ! -f "$ScriptConfigFile" ]; then
|
|||
fi
|
||||
if [ ! -f "$ScriptConfigFile" ]; then
|
||||
echo "[ERROR] Post-Process: Configuration file $ScriptConfigFile not found, exiting"
|
||||
do_exit $POSTPROCESS_ERROR
|
||||
exit $POSTPROCESS_ERROR
|
||||
fi
|
||||
|
||||
# Readg configuration file
|
||||
|
@ -199,13 +199,13 @@ fi
|
|||
|
||||
if [ "$BadConfig" -eq 1 ]; then
|
||||
echo "[ERROR] Post-Process: Exiting because of not compatible nzbget configuration"
|
||||
do_exit $POSTPROCESS_ERROR
|
||||
exit $POSTPROCESS_ERROR
|
||||
fi
|
||||
|
||||
# Check if all collections in nzb-file were downloaded
|
||||
if [ ! "$NZBPP_NZBCOMPLETED" -eq 1 ]; then
|
||||
echo "[INFO] Post-Process: Not the last collection in nzb-file, exiting"
|
||||
do_exit $POSTPROCESS_SUCCESS
|
||||
exit $POSTPROCESS_SUCCESS
|
||||
fi
|
||||
|
||||
# Check par status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue