ReleaseName=$(wget -U "$agent" --timeout=0 -q -O - "https://musicbrainz.org/ws/2/release-group/$1"| grep -o "<title>.*</title>"| sed 's/<title>//g'| head -c -9 | sed 's/\&/\&/g'| sed 's/???/???/g')
log "Adding :: $artist :: $ReleaseName"
AddReleaseToLidarr $1"$artist""$ReleaseName"
}
SearchAllReleasesForArtist(){
offset=0
while[$offset -le 500]
@ -113,6 +115,7 @@ SearchAllReleasesForArtist() {
fi
done
}
ArtistLookup(){
search=$(echo$1| sed 's/\"//g')
artist=$(wget -U "$agent" --timeout=0 -q -O - "https://musicbrainz.org/ws/2/artist/$search"| grep -o "<name>.*</name>"| sed 's/<name>//'| sed 's/<\/name>.*//'| sed 's/???/???/g'| sed 's/\&/\&/g')