diff --git a/root/scripts/PlexNotify.bash b/root/scripts/PlexNotify.bash index 33b6bbe..399ed0f 100644 --- a/root/scripts/PlexNotify.bash +++ b/root/scripts/PlexNotify.bash @@ -1,10 +1,10 @@ #!/usr/bin/env bash -version="1.0.000" +version="1.0.001" notfidedBy="Sonarr" arrRootFolderPath="$(dirname "$sonarr_series_path")" arrFolderPath="$sonarr_series_path" arrEventType="$sonarr_eventtype" -movieExtrasPath="$1" +extrasPath="$1" # Debugging Settings #enableExtras=false @@ -23,12 +23,17 @@ log () { } if [ "$enableExtras" == "true" ]; then - if [ -z "$movieExtrasPath" ]; then - log "MovieExtras script is enabled, skipping..." + if [ -z "$extrasPath" ]; then + log "Extras script is enabled, skipping..." exit fi fi +if [ ! -z "$extrasPath" ]; then + arrFolderPath="$extrasPath" + arrRootFolderPath="$(dirname "$extrasPath")" +fi + if [ "$arrEventType" == "Test" ]; then log "$notfidedBy :: Tested Successfully" exit 0