From 68884ef291b243ac0997ae105e81a1de356ea3a1 Mon Sep 17 00:00:00 2001 From: RandomUser345 <108257447+RandomUser345@users.noreply.github.com> Date: Fri, 21 Oct 2022 10:15:34 +0200 Subject: [PATCH] Change releasedate comparison to greater or equal rather than greater than This is needed to also get the releases from today ie. if you're syncing some importlists. --- root/scripts/audio.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/scripts/audio.sh b/root/scripts/audio.sh index 1118e7f..4f2f2e2 100644 --- a/root/scripts/audio.sh +++ b/root/scripts/audio.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.255" +scriptVersion="1.0.256" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -1109,7 +1109,7 @@ SearchProcess () { - if [[ ${currentDateClean} -gt ${lidarrAlbumReleaseDateClean} ]]; then + if [[ ${currentDateClean} -ge ${lidarrAlbumReleaseDateClean} ]]; then log "$processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Starting Search..." else log "$processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Album ($lidarrAlbumReleaseDate) has not been released, skipping..."