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.
pull/105/head
RandomUser345 2 years ago committed by GitHub
parent 5bbc4be0f4
commit 68884ef291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save