From 506fe5c7204dc1e29f395e409df66b7532612176 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 23 Sep 2022 13:58:51 -0400 Subject: [PATCH] 1.0.4 - use variable, use first metadata profile --- root/scripts/ERA.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/root/scripts/ERA.sh b/root/scripts/ERA.sh index fd07873..1fef348 100644 --- a/root/scripts/ERA.sh +++ b/root/scripts/ERA.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.3" +scriptVersion="1.0.4" agent="ERA ( https://github.com/Makario1337/ExtendedReleaseAdder )" ArtistsJSON=$(jq '.artists[]' /config/artists.json) @@ -65,9 +65,9 @@ AddReleaseToLidarr() { lidarrAlbumSearch=$(echo $lidarrAlbumSearch | sed 's/"monitored": false/"monitored": true/g'| sed 's/"qualityProfileId": 0/"qualityProfileId": 1/g' | - sed 's/"metadataProfileId": 0/"metadataProfileId": 2/g' | - sed 's/"metadataProfileId": 2/"metadataProfileId": 2,\"rootFolderPath": "\/audiobooks\/" /g'| - sed 's/"metadataProfileId": 2/"metadataProfileId": 2,\"addOptions": {"monitor": "all","searchForMissingAlbums": false}/g' | + sed 's/"metadataProfileId": 0/"metadataProfileId": 1/g' | + sed "s%\"metadataProfileId\": 1%\"metadataProfileId\": 1,\"rootFolderPath\": \"$lidarrAudiobookRootFolder/\" %g" | + sed 's/"metadataProfileId": 1/"metadataProfileId": 1,\"addOptions": {"monitor": "all","searchForMissingAlbums": false}/g' | sed 's/"grabbed": false/"grabbed": false,\"addOptions": {"searchForNewAlbum": false}/g'| jq '.' | cut -c 2- |