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

Loading…
Cancel
Save