1.08 - Add post processing execution length/time

master
RandomNinjaAtk 2 years ago committed by GitHub
parent 06fc98d90b
commit af3a0087ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,11 +2,15 @@
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
TITLESHORT="APP"
ScriptVersion="1.07"
ScriptVersion="1.08"
set -e
set -o pipefail
touch "/config/scripts/logs/audio-pp.txt"
chmod 666 "/config/scripts/logs/audio-pp.txt"
exec &> >(tee -a "/config/scripts/logs/audio-pp.txt")
Main () {
# SETTINGS
AudioVerification="${AUDIO_VERIFY}" # TRUE = ENABLED, Verifies FLAC/MP3 files for errors (fixes MP3's, deletes bad FLAC files)
@ -258,13 +262,11 @@ Main () {
}
Main "$@" | tee -a /config/scripts/logs/audio-pp.log
chmod 666 /config/scripts/logs/audio-pp.log
chown abc:abc /config/scripts/logs/audio-pp.log
SECONDS=0
Main "$@"
chmod 777 "$1"
chmod 666 "$1"/*
chown -R abc:abc "$1"
echo ""
echo "Post Processing Complete!"
duration=$SECONDS
echo "Post Processing Completed in $(($duration / 60 )) minutes and $(($duration % 60 )) seconds!"
exit $?

Loading…
Cancel
Save