From c3b25c1da7ffe24f0b825f73b520eef17cd077bb Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 25 Jan 2023 12:24:58 -0500 Subject: [PATCH] 1.0.26 - bug fix --- root/scripts/video-pp.bash | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/root/scripts/video-pp.bash b/root/scripts/video-pp.bash index 060749a..7735830 100644 --- a/root/scripts/video-pp.bash +++ b/root/scripts/video-pp.bash @@ -2,7 +2,7 @@ export LC_ALL=C.UTF-8 export LANG=C.UTF-8 TITLESHORT="VPP" -scriptVersion=1.0.25 +scriptVersion=1.0.26 set -e set -o pipefail @@ -91,6 +91,11 @@ VideoLanguageCheck () { done if [ "$preferredLanguage" == "false" ]; then + if [ ${VIDEO_SMA} = TRUE ]; then + if [ "$smaProcessComplete" == "false" ]; then + return + fi + fi if [ "$RequireLanguage" == "true" ]; then log "$count of $fileCount :: ERROR :: No matching languages found in $(($videoAudioTracksCount + $videoSubtitleTracksCount)) Audio/Subtitle tracks" log "$count of $fileCount :: ERROR :: Disable " @@ -146,8 +151,8 @@ VideoSmaProcess (){ rm "$file" && log "INFO: deleted: $fileName" fi fi - done + smaProcessComplete="true" } function Main { @@ -156,12 +161,15 @@ function Main { folderpath="$1" jobname="$3" category="$5" + smaProcessComplete="false" Configuration VideoFileCheck "$folderpath" VideoLanguageCheck "$folderpath" VideoFileCheck "$folderpath" - VideoSmaProcess "$folderpath" "$category" + if [ ${VIDEO_SMA} = TRUE ]; then + VideoSmaProcess "$folderpath" "$category" + fi VideoFileCheck "$folderpath" VideoLanguageCheck "$folderpath" VideoFileCheck "$folderpath"