1.0.015 - Enable External Script trigger

pull/139/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 31320d59ee
commit 3920905092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save