1.0.6 - Spacing

pull/81/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 9153dc4d37
commit 4531a57a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.5"
scriptVersion="1.0.6"
agent="ERA ( https://github.com/Makario1337/ExtendedReleaseAdder )"
ArtistsJSON=$(jq '.artists[]' /config/artists.json)
@ -85,11 +85,13 @@ else
log "Adding :: $2 :: $3 :: Release Added..."
fi
}
SearchRelease(){
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/\&amp;/\&/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/\&amp;/\&/g')
@ -130,3 +133,5 @@ else
ArtistLookup $str
done
fi
exit

Loading…
Cancel
Save