From e94de9a3e36e7f99638f108498d044f82632cba5 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 12 Jul 2023 12:53:06 +0000 Subject: [PATCH] v1.1 make configurable --- radarr/PlexNotify.bash | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/radarr/PlexNotify.bash b/radarr/PlexNotify.bash index dbc0b06..34ef90f 100644 --- a/radarr/PlexNotify.bash +++ b/radarr/PlexNotify.bash @@ -1,5 +1,14 @@ #!/usr/bin/env bash -scriptVersion="1.0" +scriptVersion="1.1" +scriptName="PlexNotify" + +#### Import Settings +source /config/extended.conf + +log () { + m_time=`date "+%F %T"` + echo $m_time" :: $scriptName :: $scriptVersion :: "$1 +} notfidedBy="Radarr" arrRootFolderPath="$(dirname "$radarr_movie_path")" @@ -7,8 +16,6 @@ arrFolderPath="$radarr_movie_path" arrEventType="$radarr_eventtype" movieExtrasPath="$1" -# Debugging Settings -enableExtras=true # auto-clean up log file to reduce space usage if [ -f "/config/logs/PlexNotify.txt" ]; then @@ -21,10 +28,6 @@ if [ ! -f "/config/logs/PlexNotify.txt" ]; then fi exec &> >(tee -a "/config/logs/PlexNotify.txt") -log () { - m_time=`date "+%F %T"` - echo $m_time" :: PlexNotify :: $scriptVersion :: "$1 -} if [ "$enableExtras" == "true" ]; then if [ -z "$movieExtrasPath" ]; then