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
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

Loading…
Cancel
Save