|
|
@ -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 $?
|
|
|
|