From b8f674e138b4ce3f60dd4b462410c450384a9d98 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 11 Jan 2024 11:12:41 +0000 Subject: [PATCH] 2.25 - Truncate downloaded folder name #156 - Only use first 100 characters of album name in folder name... --- lidarr/Audio.service.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lidarr/Audio.service.bash b/lidarr/Audio.service.bash index b23ca2f..733da79 100644 --- a/lidarr/Audio.service.bash +++ b/lidarr/Audio.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="2.24" +scriptVersion="2.25" scriptName="Audio" ### Import Settings @@ -665,7 +665,7 @@ DownloadProcess () { fi albumquality="$(find "$audioPath"/incomplete/ -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | head -n 1 | egrep -i -E -o "\.{1}\w*$" | sed 's/\.//g')" - downloadedAlbumFolder="$lidarrArtistNameSanitized-$downloadedAlbumTitleClean ($3)-${albumquality^^}-$1-$2" + downloadedAlbumFolder="$lidarrArtistNameSanitized-${downloadedAlbumTitleClean:0:100} ($3)-${albumquality^^}-$1-$2" find "$audioPath/incomplete" -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" -print0 | while IFS= read -r -d '' audio; do file="${audio}"