From e310cda1410e2679730dbd7bd7e19eceb04e3d81 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 12 Jul 2023 14:07:23 +0000 Subject: [PATCH] 1.0.8 - make configurable --- lidarr/PlexNotify.bash | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lidarr/PlexNotify.bash b/lidarr/PlexNotify.bash index 0a038a6..72f59c1 100644 --- a/lidarr/PlexNotify.bash +++ b/lidarr/PlexNotify.bash @@ -1,5 +1,15 @@ #!/usr/bin/env bash -scriptVersion=1.0.7 +scriptVersion="1.0.8" +scriptName="PlexNotify" + +#### Import Settings +source /config/extended.conf + +log () { + m_time=`date "+%F %T"` + echo $m_time" :: $scriptName :: $scriptVersion :: "$1 +} + if [ -z "$lidarr_artist_path" ]; then lidarr_artist_path="$1" notfidedBy=Extended_Script @@ -16,10 +26,7 @@ fi exec &> >(tee -a "/config/logs/PlexNotify.txt") chmod 666 "/config/logs/PlexNotify.txt" -log () { - m_time=`date "+%F %T"` - echo $m_time" :: PlexNotify :: $scriptVersion :: "$1 -} + if [ "$lidarr_eventtype" == "Test" ]; then log "Tested Successfully"