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