From c1cfc839f9baf5c8946cfb816322e6bc6c0bfdd4 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 18 Jul 2023 17:08:53 -0400 Subject: [PATCH] v2.3 - Hide error that can be ignored, don't alter track tags --- lidarr/Audio.service.bash | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/lidarr/Audio.service.bash b/lidarr/Audio.service.bash index 7084ec4..d945e72 100644 --- a/lidarr/Audio.service.bash +++ b/lidarr/Audio.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="2.2" +scriptVersion="2.3" scriptName="Audio" log () { @@ -543,8 +543,8 @@ DownloadProcess () { # Consolidate files to a single folder log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Consolidating files to single folder" - find "$audioPath/incomplete" -type f -exec mv "{}" "$audioPath"/incomplete/ \; - find $audioPath/incomplete/ -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} \; + find "$audioPath/incomplete" -type f -exec mv "{}" "$audioPath"/incomplete/ \; 2>/dev/null + find $audioPath/incomplete/ -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} \; 2>/dev/null downloadCount=$(find "$audioPath"/incomplete/ -type f -regex ".*/.*\.\(flac\|m4a\|mp3\)" | wc -l) if [ "$downloadCount" -gt "0" ]; then @@ -576,19 +576,6 @@ DownloadProcess () { touch /config/extended/logs/downloaded/tidal/$1 fi - # Correct Artist/albumartist Flac files - find "$audioPath/incomplete" -type f -iname "*.flac" -print0 | while IFS= read -r -d '' file; do - log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Setting ARTIST/ALBUMARTIST tag to \"$lidarrArtistName\" :: $file" - metaflac --remove-tag=ALBUMARTIST "$file" - metaflac --remove-tag=ARTIST "$file" - metaflac --remove-tag=MUSICBRAINZ_ARTISTID "$file" - metaflac --remove-tag=MUSICBRAINZ_ALBUMARTISTID "$file" - metaflac --set-tag=ALBUMARTIST="$lidarrArtistName" "$file" - metaflac --set-tag=ARTIST="$lidarrArtistName" "$file" - metaflac --set-tag=MUSICBRAINZ_ARTISTID="$lidarrArtistForeignArtistId" "$file" - metaflac --set-tag=MUSICBRAINZ_ALBUMARTISTID="$lidarrArtistForeignArtistId" "$file" - done - # Tag with beets if [ "$enableBeetsTagging" == "true" ]; then if [ -f /config/extended/beets-error ]; then