From 4a0be66903edecda59d8f4588900d2a638e01c9a Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 3 Nov 2022 11:35:32 -0400 Subject: [PATCH] 1.0.049 - use tidy for nfo, more verbose output for logging --- root/scripts/video.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/root/scripts/video.sh b/root/scripts/video.sh index 77a95e7..c2b628b 100644 --- a/root/scripts/video.sh +++ b/root/scripts/video.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.048" +scriptVersion="1.0.049" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" @@ -305,9 +305,9 @@ DownloadVideo () { if echo "$1" | grep -i "youtube" | read; then if [ ! -z "$cookiesFile" ]; then - yt-dlp -f "$videoFormat" --no-video-multistreams --cookies "$cookiesFile" -o "$downloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1" &>/dev/null + yt-dlp -f "$videoFormat" --no-video-multistreams --cookies "$cookiesFile" -o "$downloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1" else - yt-dlp -f "$videoFormat" --no-video-multistreams -o "$downloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1" &>/dev/null + yt-dlp -f "$videoFormat" --no-video-multistreams -o "$downloadPath/incomplete/${2}${3}" --embed-subs --sub-lang $youtubeSubtitleLanguage --merge-output-format mkv --remux-video mkv --no-mtime --geo-bypass "$1" fi if [ -f "$downloadPath/incomplete/${2}${3}.mkv" ]; then chmod 666 "$downloadPath/incomplete/${2}${3}.mkv" @@ -461,6 +461,7 @@ VideoNfoWriter () { echo " " >> "$nfo" echo " ${1}${2}.jpg" >> "$nfo" echo "" >> "$nfo" + tidy -w 2000 -i -m -xml "$nfo" &>/dev/null chmod 666 "$nfo" }