From d0289ecaa310da7eafd45a0134241f61efaaa905 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 24 Nov 2022 11:25:36 -0500 Subject: [PATCH] 1.0.299 - Bug fix for logging output --- root/scripts/Audio.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/root/scripts/Audio.sh b/root/scripts/Audio.sh index 1ec534a..e0f279b 100644 --- a/root/scripts/Audio.sh +++ b/root/scripts/Audio.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.298" +scriptVersion="1.0.299" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -130,10 +130,12 @@ Configuration () { log "Output format: $audioFormat" - if [ "$audioFormat" == "alac" ]; then - audioBitrateText="LOSSLESS" - else - audioBitrateText="${audioBitrate}k" + if [ "$audioFormat" != "native" ]; then + if [ "$audioFormat" == "alac" ]; then + audioBitrateText="LOSSLESS" + else + audioBitrateText="${audioBitrate}k" + fi fi log "Output bitrate: $audioBitrateText"