v1.0.86 - Change to process for purging list data before getting updated list data..

pull/16/head
RandomNinjaAtk 3 years ago committed by GitHub
parent 7228a2127f
commit 2c966f6f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.85"
scriptVersion="1.0.86"
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" = "null" ]; then
lidarrUrlBase=""
@ -676,15 +676,12 @@ LidarrRootFolderCheck () {
}
GetMissingCutOffList () {
if [ -d /config/extended/cache/missing ]; then
rm -rf /config/extended/cache/missing
if [ -d /config/extended/cache/lidarr/list ]; then
rm -rf /config/extended/cache/lidarr/list
sleep 0.1
fi
if [ -d /config/extended/cache/lidarr/list ]; then
rm /config/extended/cache/lidarr/list/*
else
mkdir -p /config/extended/cache/lidarr/list
fi
mkdir -p /config/extended/cache/lidarr/list
# Get missing album list
lidarrMissingTotalRecords=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/wanted/missing?page=1&pagesize=1&sortKey=releaseDate&sortDirection=desc&apikey=${lidarrApiKey}" | jq -r .totalRecords)

Loading…
Cancel
Save