|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
scriptVersion="1.0.298"
|
|
|
|
scriptVersion="1.0.299"
|
|
|
|
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
|
|
|
@ -130,11 +130,13 @@ Configuration () {
|
|
|
|
|
|
|
|
|
|
|
|
log "Output format: $audioFormat"
|
|
|
|
log "Output format: $audioFormat"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$audioFormat" != "native" ]; then
|
|
|
|
if [ "$audioFormat" == "alac" ]; then
|
|
|
|
if [ "$audioFormat" == "alac" ]; then
|
|
|
|
audioBitrateText="LOSSLESS"
|
|
|
|
audioBitrateText="LOSSLESS"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
audioBitrateText="${audioBitrate}k"
|
|
|
|
audioBitrateText="${audioBitrate}k"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
log "Output bitrate: $audioBitrateText"
|
|
|
|
log "Output bitrate: $audioBitrateText"
|
|
|
|
|
|
|
|
|
|
|
|