From 3b9aa52fe2e3a9a83debf6dd043daa8be6746b75 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 5 Sep 2022 13:01:50 -0400 Subject: [PATCH] v1.0.004 - Bug Fix for extrasOfficialOnly Setting extrasOfficialOnly to false was not previously working, this should resolve that... --- root/scripts/MovieExtras.bash | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/root/scripts/MovieExtras.bash b/root/scripts/MovieExtras.bash index 7b82265..6a1e251 100644 --- a/root/scripts/MovieExtras.bash +++ b/root/scripts/MovieExtras.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.003" +scriptVersion="1.0.004" arrEventType="$radarr_eventtype" arrItemId=$radarr_movie_id tmdbApiKey="3b7751e3179f796565d88fdb2fcdf426" @@ -137,9 +137,11 @@ for id in $(echo "$tmdbVideosListDataIds"); do tmdbExtraType="$(echo "$tmdbExtraData" | jq -r .type)" tmdbExtraOfficial="$(echo "$tmdbExtraData" | jq -r .official)" - if [ "$extrasOfficialOnly" != "$tmdbExtraOfficial" ]; then - log "$itemTitle :: $i of $tmdbVideosListDataIdsCount :: $tmdbExtraType :: Not official, skipping..." - continue + if [ "$tmdbExtraOfficial" != "true" ]; then + if [ "$extrasOfficialOnly" == "true" ]; then + log "$itemTitle :: $i of $tmdbVideosListDataIdsCount :: $tmdbExtraType :: Not official, skipping..." + continue + fi fi if [ "$tmdbExtraType" == "Featurette" ]; then