From a5f5eda79ef64dc20eed8247ddc4a82a4623ae2d Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 6 Sep 2022 12:17:43 -0400 Subject: [PATCH] 1.0.006 - Bug fix and enhancement #7 Only store trailer next to movie when kodi compatibility is enabled, otherwise, use folder... --- root/scripts/MovieExtras.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/scripts/MovieExtras.bash b/root/scripts/MovieExtras.bash index e424808..f81de8d 100644 --- a/root/scripts/MovieExtras.bash +++ b/root/scripts/MovieExtras.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.005" +scriptVersion="1.0.006" arrEventType="$radarr_eventtype" arrItemId=$radarr_movie_id tmdbApiKey="3b7751e3179f796565d88fdb2fcdf426" @@ -79,7 +79,7 @@ if [ "$extrasSingle" == "true" ]; then if [ "$extrasKodiCompatibility" == "true" ] ; then extrasFileName="movie-trailer" else - extrasFileName="Trailer-trailer" + extrasFileName="trailers/Trailer" fi if [ ! -z "$itemTrailerId" ]; then @@ -87,7 +87,7 @@ if [ "$extrasSingle" == "true" ]; then if [ ! -z "$cookiesFile" ]; then yt-dlp --cookies "$cookiesFile" -o "$itemPath/$extrasFileName" --write-sub --sub-lang $extrasLanguages --embed-subs --merge-output-format mkv --no-mtime --geo-bypass "https://www.youtube.com/watch?v=$itemTrailerId" else - yt-dlp -o "$itemPath/Trailer-trailer" --write-sub --sub-lang $extrasLanguages --embed-subs --merge-output-format mkv --no-mtime --geo-bypass "https://www.youtube.com/watch?v=$itemTrailerId" + yt-dlp -o "$itemPath/$extrasFileName" --write-sub --sub-lang $extrasLanguages --embed-subs --merge-output-format mkv --no-mtime --geo-bypass "https://www.youtube.com/watch?v=$itemTrailerId" fi fi if [ -f "$itemPath/$extrasFileName.mkv" ]; then