1.0.20 - Logging updates, implement RequireLanguage setting

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

@ -2,7 +2,7 @@
export LC_ALL=C.UTF-8 export LC_ALL=C.UTF-8
export LANG=C.UTF-8 export LANG=C.UTF-8
TITLESHORT="VPP" TITLESHORT="VPP"
scriptVersion=1.0.19 scriptVersion=1.0.20
set -e set -e
set -o pipefail set -o pipefail
@ -21,23 +21,24 @@ function Configuration {
log "CONFIGURATION VERIFICATION" log "CONFIGURATION VERIFICATION"
log "##########################" log "##########################"
log "$TITLESHORT: Required Audio/Subtitle Language: ${VIDEO_LANG}" log "Preferred Audio/Subtitle Languages: ${VIDEO_LANG}"
if [ ${VIDEO_MKVCLEANER} = TRUE ]; then if [ "${RequireLanguage}" = "true" ]; then
log "$TITLESHORT: MKV Cleaner: ENABLED" log "Require Matching Language :: Enabled"
else else
log "$TITLESHORT: MKV Cleaner: DISABLED" log "Require Matching Language :: Disabled"
fi fi
if [ ${VIDEO_SMA} = TRUE ]; then if [ ${VIDEO_SMA} = TRUE ]; then
log "$TITLESHORT: Sickbeard MP4 Automator (SMA): ENABLED" log "$TITLESHORT: Sickbeard MP4 Automator (SMA): ENABLED"
if [ ${VIDEO_SMA_TAGGING} = TRUE ]; then if [ ${VIDEO_SMA_TAGGING} = TRUE ]; then
tagging="-a" tagging="-a"
log "$TITLESHORT: Sickbeard MP4 Automator (SMA): Tagging: ENABLED" log "Sickbeard MP4 Automator (SMA): Tagging: ENABLED"
else else
tagging="-nt" tagging="-nt"
log "$TITLESHORT: Sickbeard MP4 Automator (SMA): Tagging: DISABLED" log "Sickbeard MP4 Automator (SMA): Tagging: DISABLED"
fi fi
else else
log "$TITLESHORT: Sickbeard MP4 Automator (SMA): DISABLED" log "Sickbeard MP4 Automator (SMA): DISABLED"
fi fi
if [ -z "VIDEO_SMA_TAGGING" ]; then if [ -z "VIDEO_SMA_TAGGING" ]; then
@ -107,9 +108,12 @@ function Main {
done done
if [ "$preferredLanguage" == "false" ]; then if [ "$preferredLanguage" == "false" ]; then
if [ "$RequireLanguage" == "true" ]; then
log "$count of $fileCount :: ERROR :: No matching languages found in $(($videoAudioTracksCount + $videoSubtitleTracksCount)) Audio/Subtitle tracks" log "$count of $fileCount :: ERROR :: No matching languages found in $(($videoAudioTracksCount + $videoSubtitleTracksCount)) Audio/Subtitle tracks"
log "$count of $fileCount :: ERROR :: Disable "
rm "$file" && log "INFO: deleted: $fileName" rm "$file" && log "INFO: deleted: $fileName"
fi fi
fi
if [ ${VIDEO_SMA} = TRUE ]; then if [ ${VIDEO_SMA} = TRUE ]; then
if [ -f "$file" ]; then if [ -f "$file" ]; then

Loading…
Cancel
Save