1.0.26 - bug fix

master
RandomNinjaAtk 2 years ago committed by GitHub
parent f633b87914
commit c3b25c1da7
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.25 scriptVersion=1.0.26
set -e set -e
set -o pipefail set -o pipefail
@ -91,6 +91,11 @@ VideoLanguageCheck () {
done done
if [ "$preferredLanguage" == "false" ]; then if [ "$preferredLanguage" == "false" ]; then
if [ ${VIDEO_SMA} = TRUE ]; then
if [ "$smaProcessComplete" == "false" ]; then
return
fi
fi
if [ "$RequireLanguage" == "true" ]; 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 " log "$count of $fileCount :: ERROR :: Disable "
@ -146,8 +151,8 @@ VideoSmaProcess (){
rm "$file" && log "INFO: deleted: $fileName" rm "$file" && log "INFO: deleted: $fileName"
fi fi
fi fi
done done
smaProcessComplete="true"
} }
function Main { function Main {
@ -156,12 +161,15 @@ function Main {
folderpath="$1" folderpath="$1"
jobname="$3" jobname="$3"
category="$5" category="$5"
smaProcessComplete="false"
Configuration Configuration
VideoFileCheck "$folderpath" VideoFileCheck "$folderpath"
VideoLanguageCheck "$folderpath" VideoLanguageCheck "$folderpath"
VideoFileCheck "$folderpath" VideoFileCheck "$folderpath"
VideoSmaProcess "$folderpath" "$category" if [ ${VIDEO_SMA} = TRUE ]; then
VideoSmaProcess "$folderpath" "$category"
fi
VideoFileCheck "$folderpath" VideoFileCheck "$folderpath"
VideoLanguageCheck "$folderpath" VideoLanguageCheck "$folderpath"
VideoFileCheck "$folderpath" VideoFileCheck "$folderpath"

Loading…
Cancel
Save