From 59e1101549716bfc53591396a1cd61a31503fb29 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 12 Jul 2023 12:21:59 +0000 Subject: [PATCH] v1.5 Make configurable --- sabnzbd/audio.bash | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/sabnzbd/audio.bash b/sabnzbd/audio.bash index 8bd81ad..04ed7b0 100644 --- a/sabnzbd/audio.bash +++ b/sabnzbd/audio.bash @@ -1,6 +1,16 @@ #!/usr/bin/with-contenv bash TITLESHORT="APP" -ScriptVersion="1.4" +ScriptVersion="1.5" +scriptName="Audio" + +#### Import Settings +source /config/extended.conf + +log () { + m_time=`date "+%F %T"` + echo $m_time" :: $scriptName :: $scriptVersion :: "$1 +} + set -e set -o pipefail @@ -9,14 +19,6 @@ touch "/config/scripts/audio.txt" exec &> >(tee -a "/config/scripts/audio.txt") Main () { - # SETTINGS - AudioVerification="TRUE" # TRUE = ENABLED, Verifies FLAC/MP3 files for errors (fixes MP3's, deletes bad FLAC files) - ConversionFormat="FLAC" # SET TO: OPUS or AAC or MP3 or ALAC or FLAC - converts lossless FLAC files to set format - ConversionBitrate="160" # Set to desired bitrate when converting to OPUS/AAC/MP3 format types - ReplaygainTagging="false" # TRUE = ENABLED, adds replaygain tags for compatible players (FLAC ONLY) - BeetsTagging="TRUE" # TRUE = ENABLED, enables tagging with beets - DetectNonSplitAlubms="TRUE" # TRUE = ENABLED :: Uses "MaxFileSize" to detect and mark download as failed if detected - MaxFileSize="153600k" # M = MB, G = GB :: Set size threshold for detecting single file albums #============FUNCTIONS============