From 4d7238649e2ef6e13bed6a338a995190c7a40ede Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 15 Nov 2022 06:57:20 -0500 Subject: [PATCH] Update BeetsPostProcessor.bash --- root/scripts/BeetsPostProcessor.bash | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/root/scripts/BeetsPostProcessor.bash b/root/scripts/BeetsPostProcessor.bash index 8232b38..30ef178 100644 --- a/root/scripts/BeetsPostProcessor.bash +++ b/root/scripts/BeetsPostProcessor.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -version=1.0.006 +version=1.0.007 if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -101,6 +101,15 @@ ProcessWithBeets () { fi } -ProcessWithBeets "$getFolderPath" +NotifyPlex () { + # Process item with PlexNotify.bash if plexToken is configured + if [ ! -z "$plexToken" ]; then + # update plex + log "$1 :: Using PlexNotify.bash to update Plex...." + bash /config/extended/scripts/PlexNotify.bash "$2" + fi +} +ProcessWithBeets "$getFolderPath" +NotifyPlex "$getAlbumArtist" "$getAlbumArtistPath" exit