From 71e23de259572a992c7620cfc8165bced2d4b9b9 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 29 Jul 2022 14:39:16 +0000 Subject: [PATCH] v1.0.004 - Plex workaround Remove disambiguation from artist folder that would prevent plex from associating the videos --- root/scripts/video.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root/scripts/video.sh b/root/scripts/video.sh index 34efa4f..5d55f12 100644 --- a/root/scripts/video.sh +++ b/root/scripts/video.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.003" +scriptVersion="1.0.004" lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" = "null" ]; then lidarrUrlBase="" @@ -85,6 +85,7 @@ CacheMusicbrainzRecords () { lidarrArtistMusicbrainzId=$(echo $lidarrArtistData | jq -r .foreignArtistId) lidarrArtistPath="$(echo "${lidarrArtistData}" | jq -r " .path")" lidarrArtistFolder="$(basename "${lidarrArtistPath}")" + lidarrArtistFolder="$(echo "$lidarrArtistFolder" | sed "s/ (.*)$//g")" # Plex Sanitization, remove disambiguation lidarrArtistNameSanitized="$(echo "$lidarrArtistFolder" | sed 's% (.*)$%%g')" if [ "$lidarrArtistName" == "Various Artists" ]; then