From ea391f67b39a2fccbba784e7fa5bac61c8e959c7 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 8 Aug 2022 11:16:03 +0000 Subject: [PATCH] Update video.sh --- root/scripts/video.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/scripts/video.sh b/root/scripts/video.sh index 62fd2b3..c5f917b 100644 --- a/root/scripts/video.sh +++ b/root/scripts/video.sh @@ -481,7 +481,7 @@ for lidarrArtistId in $(echo $lidarrArtistIds); do for musicbrainzVideoId in $(echo "$musicbrainzArtistVideoRecordingsDataWithUrlIds"); do musicbrainzVideoRecordingData=$(echo "$musicbrainzArtistVideoRecordingsDataWithUrl" | jq -r "select(.id==\"$musicbrainzVideoId\")") musicbrainzVideoTitle="$(echo "$musicbrainzVideoRecordingData" | jq -r .title)" - musicbrainzVideoTitleClean="$(echo "$musicbrainzVideoTitle" | sed -e sed -e "s/[^[:alpha:][:digit:]$^&_+=()'%;{},.@#]/ /g" -e "s/ */ /g" | sed 's/^[.]*//' | sed 's/[.]*$//g' | sed 's/^ *//g' | sed 's/ *$//g')" + musicbrainzVideoTitleClean="$(echo "$musicbrainzVideoTitle" | sed -e "s/[^[:alpha:][:digit:]$^&_+=()'%;{},.@#]/ /g" -e "s/ */ /g" | sed 's/^[.]*//' | sed 's/[.]*$//g' | sed 's/^ *//g' | sed 's/ *$//g')" musicbrainzVideoArtistCredits="$(echo "$musicbrainzVideoRecordingData" | jq -r ".\"artist-credit\"[]")" musicbrainzVideoArtistCreditsNames="$(echo "$musicbrainzVideoArtistCredits" | jq -r ".artist.name")" musicbrainzVideoArtistCreditId="$(echo "$musicbrainzVideoArtistCredits" | jq -r ".artist.id" | head -n1)"