From 14fa832eae3d7a55a4c6dcc13593d5c0ad2eef6d Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 21 Sep 2023 10:19:23 +0000 Subject: [PATCH] 2.15 - log file naming changes #87 --- lidarr/Audio.service.bash | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lidarr/Audio.service.bash b/lidarr/Audio.service.bash index 182c5ee..f3e9f1e 100644 --- a/lidarr/Audio.service.bash +++ b/lidarr/Audio.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="2.14" +scriptVersion="2.15" scriptName="Audio" ### Import Settings @@ -151,7 +151,7 @@ Configuration () { } DownloadClientFreyr () { - freyr --no-bar -d $audioPath/incomplete deezer:album:$1 2>&1 | tee -a /config/logs/$scriptName.txt + freyr --no-bar -d $audioPath/incomplete deezer:album:$1 2>&1 | tee -a /config/logs/$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt } DownloadFormat () { @@ -262,7 +262,7 @@ TidalClientSetup () { fi TidaldlStatusCheck - tidal-dl -o "$audioPath"/incomplete 2>&1 | tee -a /config/logs/$scriptName.txt + tidal-dl -o "$audioPath"/incomplete 2>&1 | tee -a /config/logs/$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt DownloadFormat if [ ! -f /config/xdg/.tidal-dl.token.json ]; then @@ -318,7 +318,7 @@ TidalClientTest () { while [ $i -lt 3 ]; do i=$(( $i + 1 )) TidaldlStatusCheck - tidal-dl -q Normal -o "$audioPath"/incomplete -l "$tidalClientTestDownloadId" 2>&1 | tee -a /config/logs/$scriptName.txt + tidal-dl -q Normal -o "$audioPath"/incomplete -l "$tidalClientTestDownloadId" 2>&1 | tee -a /config/logs/$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt downloadCount=$(find "$audioPath"/incomplete -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l) if [ $downloadCount -le 0 ]; then continue @@ -450,7 +450,7 @@ DownloadProcess () { if [ -z $arlToken ]; then DownloadClientFreyr $1 else - deemix -b $deemixQuality -p "$audioPath"/incomplete "https://www.deezer.com/album/$1" 2>&1 | tee -a /config/logs/$scriptName.txt + deemix -b $deemixQuality -p "$audioPath"/incomplete "https://www.deezer.com/album/$1" 2>&1 | tee -a /config/logs/$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt fi if [ -d "/tmp/deemix-imgs" ]; then @@ -487,7 +487,7 @@ DownloadProcess () { if [ -z $arlToken ]; then DownloadClientFreyr $1 else - deemix -b $deemixQuality -p "$audioPath"/incomplete "https://www.deezer.com/album/$1" 2>&1 | tee -a /config/logs/$scriptName.txt + deemix -b $deemixQuality -p "$audioPath"/incomplete "https://www.deezer.com/album/$1" 2>&1 | tee -a /config/logs/$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt fi fi fi @@ -495,7 +495,7 @@ DownloadProcess () { if [ "$2" == "TIDAL" ]; then TidaldlStatusCheck - tidal-dl -q $tidalQuality -o "$audioPath/incomplete" -l "$1" 2>&1 | tee -a /config/logs/$scriptName.txt + tidal-dl -q $tidalQuality -o "$audioPath/incomplete" -l "$1" 2>&1 | tee -a /config/logs/$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt # Verify Client Works... clientTestDlCount=$(find "$audioPath"/incomplete/ -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l) @@ -956,7 +956,7 @@ DeemixClientSetup () { DeezerClientTest () { log "DEEZER :: deemix client setup verification..." - deemix -b 128 -p $audioPath/incomplete "https://www.deezer.com/album/$deezerClientTestDownloadId" 2>&1 | tee -a /config/logs/$scriptName.txt + deemix -b 128 -p $audioPath/incomplete "https://www.deezer.com/album/$deezerClientTestDownloadId" 2>&1 | tee -a /config/logs/$scriptName-$(date +"%Y_%m_%d_%I_%M_%p").txt if [ -d "/tmp/deemix-imgs" ]; then rm -rf /tmp/deemix-imgs fi