v1.0.276 - improved logging output

pull/139/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 3d845d5619
commit 2066832620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
scriptVersion="1.0.275" scriptVersion="1.0.276"
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" == "null" ]; then if [ "$lidarrUrlBase" == "null" ]; then
@ -674,6 +674,7 @@ DownloadProcess () {
# Correct Artist/albumartist Flac files # Correct Artist/albumartist Flac files
find "$downloadPath/incomplete" -type f -iname "*.flac" -print0 | while IFS= read -r -d '' file; do find "$downloadPath/incomplete" -type f -iname "*.flac" -print0 | while IFS= read -r -d '' file; do
log "$processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Setting ARTIST/ALBUMARTIST tag to \"$lidarrArtistName\" :: $file"
metaflac --remove-tag=ALBUMARTIST "$file" metaflac --remove-tag=ALBUMARTIST "$file"
metaflac --remove-tag=ARTIST "$file" metaflac --remove-tag=ARTIST "$file"
metaflac --set-tag=ALBUMARTIST="$lidarrArtistName" "$file" metaflac --set-tag=ALBUMARTIST="$lidarrArtistName" "$file"

Loading…
Cancel
Save