Update PlexNotify.bash

pull/1/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 6924fada1d
commit c0a6385ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save