From a8d3a9891d0eeb8d058b1578091f89bdd320b367 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 18 Aug 2023 18:35:04 +0000 Subject: [PATCH] v3.4 - Adjust naming to match tidal video script --- lidarr/Video.service.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lidarr/Video.service.bash b/lidarr/Video.service.bash index f66fc6a..a28194f 100644 --- a/lidarr/Video.service.bash +++ b/lidarr/Video.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="3.3" +scriptVersion="3.4" scriptName="Video" ### Import Settings @@ -585,7 +585,8 @@ VideoProcess () { for imvdbVideoData in $(ls /config/extended/cache/imvdb/$lidarrArtistMusicbrainzId--*.json); do imvdbProcessCount=$(( $imvdbProcessCount + 1 )) imvdbVideoTitle="$(cat "$imvdbVideoData" | jq -r .song_title)" - videoTitleClean="$(echo "$imvdbVideoTitle" | sed -e "s/[^[:alpha:][:digit:]$^&_+=()'%;{},.@#]/ /g" -e "s/ */ /g" | sed 's/^[.]*//' | sed 's/[.]*$//g' | sed 's/^ *//g' | sed 's/ *$//g')" + videoTitleClean="$(echo "$imvdbVideoTitle" | sed 's%/%-%g')" + videoTitleClean="$(echo "$videoTitleClean" | sed -e "s/[:alpha:][:digit:]._' -/ /g" -e "s/ */ /g" | sed 's/^[.]*//' | sed 's/[.]*$//g' | sed 's/^ *//g' | sed 's/ *$//g')" imvdbVideoYear="" imvdbVideoYear="$(cat "$imvdbVideoData" | jq -r .year)" imvdbVideoImage="$(cat "$imvdbVideoData" | jq -r .image.o)"