From 31320d59ee9084d7ccf127c1a0bd8ae2736f5982 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 18 Nov 2022 12:53:04 -0500 Subject: [PATCH] 1.0.013 - Add MetadataPostProcess.bash trigger --- root/scripts/BeetsPostProcessor.bash | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/root/scripts/BeetsPostProcessor.bash b/root/scripts/BeetsPostProcessor.bash index 6f95d0d..92e6d53 100644 --- a/root/scripts/BeetsPostProcessor.bash +++ b/root/scripts/BeetsPostProcessor.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -version=1.0.012 +version=1.0.013 if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -139,6 +139,13 @@ ProcessWithBeets () { log "$1 :: Finished in $(($duration / 60 )) minutes and $(($duration % 60 )) seconds!" } +MetadataPostProcess () { + # Process item with PlexNotify.bash if plexToken is configured + log "Using MetadataPostProcess.bash to update Plex...." + bash /config/extended/scripts/MetadataPostProcess.bash "$1" + +} + NotifyPlex () { # Process item with PlexNotify.bash if plexToken is configured if [ ! -z "$plexToken" ]; then @@ -149,5 +156,6 @@ NotifyPlex () { } ProcessWithBeets "$getFolderPath" +MetadataPostProcess "$lidarr_album_id" NotifyPlex "$getAlbumArtist" "$getAlbumArtistPath" exit