@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion = "1.0.12 5 "
scriptVersion = "1.0.12 6 "
lidarrUrlBase = " $( cat /config/config.xml | xq | jq -r .Config.UrlBase) "
if [ " $lidarrUrlBase " = "null" ] ; then
lidarrUrlBase = ""
@ -1225,7 +1225,7 @@ ArtistDeezerSearch () {
lidarrAlbumReleaseTitleClean = $( echo " $lidarrAlbumReleaseTitle " | sed -e "s%[^[:alpha:][:digit:]]%%g" -e "s/ */ /g" | sed 's/^[.]*//' | sed 's/[.]*$//g' | sed 's/^ *//g' | sed 's/ *$//g' )
log " :: $1 :: $lidarrArtistName :: $lidarrAlbumTitle :: Searching Deezer ( $3 ) for $lidarrAlbumReleaseTitle ( $lidarrAlbumReleaseTrackCount )... "
deezerArtistAlbumsData = $( cat " /config/extended/cache/deezer/ $3 -albums.json " | jq -r " sort_by(.nb_tracks) | sort_by(.explicit_lyrics) | reverse | .[] | select(.nb_tracks==$lidarrAlbumReleaseTrackCount ) " )
deezerArtistAlbumsData = $( cat " /config/extended/cache/deezer/ $3 -albums.json " | jq -r " .[] | select(.nb_tracks==$lidarrAlbumReleaseTrackCount ) " )
deezerArtistAlbumsIds = $( echo " ${ deezerArtistAlbumsData } " | jq -r "select(.explicit_lyrics==" $4 ") | .id" )
@ -1343,7 +1343,7 @@ ArtistTidalSearch () {
lidarrAlbumReleaseTitleClean = $( echo " $lidarrAlbumReleaseTitle " | sed -e "s%[^[:alpha:][:digit:]]%%g" -e "s/ */ /g" | sed 's/^[.]*//' | sed 's/[.]*$//g' | sed 's/^ *//g' | sed 's/ *$//g' )
log " :: $1 :: $lidarrArtistName :: $lidarrAlbumTitle :: Searching Tidal ( $3 ) for $lidarrAlbumReleaseTitle ( $lidarrAlbumReleaseTrackCount )... "
tidalArtistAlbumsData = $( cat " /config/extended/cache/tidal/ $3 -albums.json " | jq -r " .items | sort_by(.numberOfTracks) | sort_by(.explicit) | reverse |. [] | select(.numberOfTracks==$lidarrAlbumReleaseTrackCount ) " )
tidalArtistAlbumsData = $( cat " /config/extended/cache/tidal/ $3 -albums.json " | jq -r " .items [] | select(.numberOfTracks==$lidarrAlbumReleaseTrackCount ) " )
tidalArtistAlbumsIds = $( echo " ${ tidalArtistAlbumsData } " | jq -r "select(.explicit==" $4 ") | .id" )