From d4a32c2e3211882490fc6f39ffca8341cfdf0998 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sat, 3 Sep 2022 11:24:41 -0400 Subject: [PATCH] Update PlexNotify.bash --- root/scripts/PlexNotify.bash | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/root/scripts/PlexNotify.bash b/root/scripts/PlexNotify.bash index 35d211d..bef50dc 100644 --- a/root/scripts/PlexNotify.bash +++ b/root/scripts/PlexNotify.bash @@ -1,10 +1,11 @@ #!/usr/bin/env bash -version=1.0.0 +version=1.0.001 notfidedBy="Radarr" arrRootFolderPath="$(dirname "$radarr_movie_path")" arrFolderPath="$radarr_movie_path" arrEventType="$radarr_eventtype" +movieExtrasPath="$1" # auto-clean up log file to reduce space usage if [ -f "/config/logs/PlexNotify.txt" ]; then @@ -19,6 +20,13 @@ log () { echo $m_time" :: PlexNotify :: "$1 } +if [ "$enableExtras" == "true" ]; then + if [ -z "$movieExtrasPath" ]; then + log "MovieExtras script is enabled, skipping..." + exit + fi +fi + if [ "$arrEventType" == "Test" ]; then log "$notfidedBy :: Tested Successfully" exit 0