1.0.210 - prevent inaccuracy

pull/35/head
RandomNinjaAtk 2 years ago committed by GitHub
parent b47c8e7b38
commit 5abd95a4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.209"
scriptVersion="1.0.210"
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" = "null" ]; then
lidarrUrlBase=""
@ -949,7 +949,7 @@ GetMissingCutOffList () {
lidarrRecords=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/wanted/missing?page=$page&pagesize=$amountPerPull&sortKey=$searchOrder&sortDirection=$searchDirection&apikey=${lidarrApiKey}" | jq -r '.records[].id')
for lidarrRecordId in $(echo $lidarrRecords); do
if ! echo "$getNotFound" | grep "$lidarrRecordId--" | read; then
if ! echo "$getNotFound" | grep "^$lidarrRecordId--" | read; then
touch /config/extended/cache/lidarr/list/${lidarrRecordId}-missing
fi
done
@ -974,7 +974,7 @@ GetMissingCutOffList () {
log ":: Downloading page $page... ($offset - $dlnumber of $lidarrCutoffTotalRecords Results)"
lidarrRecords=$(wget --timeout=0 -q -O - "$lidarrUrl/api/v1/wanted/cutoff?page=$page&pagesize=$amountPerPull&sortKey=$searchOrder&sortDirection=$searchDirection&apikey=${lidarrApiKey}" | jq -r '.records[].id')
for lidarrRecordId in $(echo $lidarrRecords); do
if ! echo "$getNotFound" | grep "$lidarrRecordId--" | read; then
if ! echo "$getNotFound" | grep "^$lidarrRecordId--" | read; then
touch /config/extended/cache/lidarr/list/${lidarrRecordId}-cutoff
fi
done

Loading…
Cancel
Save