From 9c61ba81c4f6b593f6d673aeb2af3f36cdd66d95 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 18 Nov 2022 11:11:48 -0500 Subject: [PATCH] 1.0.012 -- Maked $fixed variable work as intended... --- root/scripts/BeetsPostProcessor.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/scripts/BeetsPostProcessor.bash b/root/scripts/BeetsPostProcessor.bash index f3f1447..6f95d0d 100644 --- a/root/scripts/BeetsPostProcessor.bash +++ b/root/scripts/BeetsPostProcessor.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -version=1.0.011 +version=1.0.012 if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -81,6 +81,7 @@ ProcessWithBeets () { fixed=0 find "$1" -type f -iname "*.flac" -print0 | while IFS= read -r -d '' file; do if [ $fixed == 0 ]; then + fixed=$(( $fixed + 1 )) log "$1 :: Fixing Flac Tags..." fi getArtistCredit="$(ffprobe -loglevel 0 -print_format json -show_format -show_streams "$file" | jq -r ".format.tags.ARTIST_CREDIT" | sed "s/null//g" | sed "/^$/d")" @@ -104,6 +105,7 @@ ProcessWithBeets () { fixed=0 find "$1" -type f -iname "*.opus" -print0 | while IFS= read -r -d '' file; do if [ $fixed == 0 ]; then + fixed=$(( $fixed + 1 )) log "$1 :: Fixing OPUS Tags..." fi getArtistCredit="$(ffprobe -loglevel 0 -print_format json -show_format -show_streams "$file" | jq -r ".streams[].tags.ARTIST_CREDIT" 2>/dev/null | sed "s/null//g" | sed "/^$/d")"