1.0.4 - use variable, use first metadata profile

pull/80/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 26b527fb01
commit 506fe5c720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
scriptVersion="1.0.3" scriptVersion="1.0.4"
agent="ERA ( https://github.com/Makario1337/ExtendedReleaseAdder )" agent="ERA ( https://github.com/Makario1337/ExtendedReleaseAdder )"
ArtistsJSON=$(jq '.artists[]' /config/artists.json) ArtistsJSON=$(jq '.artists[]' /config/artists.json)
@ -65,9 +65,9 @@ AddReleaseToLidarr() {
lidarrAlbumSearch=$(echo $lidarrAlbumSearch | lidarrAlbumSearch=$(echo $lidarrAlbumSearch |
sed 's/"monitored": false/"monitored": true/g'| sed 's/"monitored": false/"monitored": true/g'|
sed 's/"qualityProfileId": 0/"qualityProfileId": 1/g' | sed 's/"qualityProfileId": 0/"qualityProfileId": 1/g' |
sed 's/"metadataProfileId": 0/"metadataProfileId": 2/g' | sed 's/"metadataProfileId": 0/"metadataProfileId": 1/g' |
sed 's/"metadataProfileId": 2/"metadataProfileId": 2,\"rootFolderPath": "\/audiobooks\/" /g'| sed "s%\"metadataProfileId\": 1%\"metadataProfileId\": 1,\"rootFolderPath\": \"$lidarrAudiobookRootFolder/\" %g" |
sed 's/"metadataProfileId": 2/"metadataProfileId": 2,\"addOptions": {"monitor": "all","searchForMissingAlbums": false}/g' | sed 's/"metadataProfileId": 1/"metadataProfileId": 1,\"addOptions": {"monitor": "all","searchForMissingAlbums": false}/g' |
sed 's/"grabbed": false/"grabbed": false,\"addOptions": {"searchForNewAlbum": false}/g'| sed 's/"grabbed": false/"grabbed": false,\"addOptions": {"searchForNewAlbum": false}/g'|
jq '.' | jq '.' |
cut -c 2- | cut -c 2- |

Loading…
Cancel
Save