Merge remote-tracking branch 'origin/master' into dev

This commit is contained in:
Clinton Hall 2013-01-20 09:29:34 +10:30
commit 27b33d9f65

View file

@ -377,6 +377,17 @@ if (ls *.rar >/dev/null 2>&1); then
rmdir extracted rmdir extracted
fi fi
# If there were nothing to unrar and the download was not par-checked,
# we don't know if it's OK. To be sure we force par-check.
# In particular that helps with downloads containing renamed rar-files.
# The par-repair will rename files to correct names, then we can unpack.
if [ "$Unrared" -eq 0 -a "$NZBPP_PARSTATUS" -eq 0 ]; then
if (ls *.[pP][aA][rR]2 >/dev/null 2>&1); then
echo "[INFO] Post-Process: No rar-files found, requesting par-check"
exit $POSTPROCESS_PARCHECK_ALL
fi
fi
# If download contains only nzb-files move them into nzb-directory # If download contains only nzb-files move them into nzb-directory
# for further download # for further download
# Check if command "wc" exists # Check if command "wc" exists