From 412ac7c13dc394efae29df791abd6462c93d5c15 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 27 Sep 2022 07:11:14 -0400 Subject: [PATCH] 1.0.044 - Bug fix #71 --- 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 5c5dceb..acf1423 100644 --- a/root/scripts/video.sh +++ b/root/scripts/video.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.043" +scriptVersion="1.0.044" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" @@ -18,6 +18,7 @@ musicbrainzMirror=https://musicbrainz.org # Debugging Settings #addFeaturedVideoArtists=true +#videoFormat=bestvideo+best+bestaudio if [ "$dlClientSource" = "tidal" ] || [ "$dlClientSource" = "both" ]; then sourcePreference=tidal @@ -312,9 +313,9 @@ DownloadVideo () { if echo "$1" | grep -i "youtube" | read; then if [ ! -z "$cookiesFile" ]; then - yt-dlp -f "$videoFormat" --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" &>/dev/null else - yt-dlp -f "$videoFormat" -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" &>/dev/null fi if [ -f "$downloadPath/incomplete/${2}${3}.mkv" ]; then chmod 666 "$downloadPath/incomplete/${2}${3}.mkv"