From bcd1cb75d1fafd94fbf600b565381086b4df420f Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 4 Apr 2024 20:12:55 -0400 Subject: [PATCH] v2.33 - add downloadClientTimeOut option for freyr #227 - This is untested, should solve this...? It's set to 10 minutes as a relatively conservative fallback option. --- lidarr/Audio.service.bash | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lidarr/Audio.service.bash b/lidarr/Audio.service.bash index 4740bd1..0205444 100644 --- a/lidarr/Audio.service.bash +++ b/lidarr/Audio.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="2.32" +scriptVersion="2.33" scriptName="Audio" ### Import Settings @@ -38,7 +38,11 @@ verifyConfig () { if [ -z "$ignoreInstrumentalRelease" ]; then ignoreInstrumentalRelease="true" fi - + + if [ -z "$downloadClientTimeOut" ]; then + downloadClientTimeOut="10m" # if not set, set to 10 minutes + fi + audioPath="$downloadPath/audio" } @@ -155,7 +159,7 @@ Configuration () { } DownloadClientFreyr () { - freyr --no-bar --no-net-check -d $audioPath/incomplete deezer:album:$1 2>&1 | tee -a "/config/logs/$logFileName" + timeout $downloadClientTimeOut freyr --no-bar --no-net-check -d $audioPath/incomplete deezer:album:$1 2>&1 | tee -a "/config/logs/$logFileName" # Resolve issue 94 if [ -d /root/.cache/FreyrCLI ]; then rm -rf /root/.cache/FreyrCLI/*