Update PlexNotify.bash

pull/49/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 98fbe3edea
commit d4a32c2e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save