From 3920905092550e4659388b4d4931836ad86ce28a Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 18 Nov 2022 12:54:18 -0500 Subject: [PATCH] 1.0.015 - Enable External Script trigger --- root/scripts/MetadataPostProcess.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/root/scripts/MetadataPostProcess.bash b/root/scripts/MetadataPostProcess.bash index cac2b9b..dcf5b08 100644 --- a/root/scripts/MetadataPostProcess.bash +++ b/root/scripts/MetadataPostProcess.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion=1.0.014 +scriptVersion=1.0.015 if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -12,6 +12,10 @@ if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrl="http://127.0.0.1:${lidarrPort}${lidarrUrlBase}" fi +if [ -z "$lidarr_album_id" ]; then + lidarr_album_id="$1" +fi + # auto-clean up log file to reduce space usage if [ -f "/config/logs/MetadataPostProcess.txt" ]; then find /config/logs -type f -name "MetadataPostProcess.txt" -size +1024k -delete