From a407111c1575205af34d9d1d458927d94e11248a Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 28 Jul 2022 20:33:37 -0400 Subject: [PATCH] Add more TidaldlStatusCheck before downgrading/upgrading client --- root/scripts/video.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/scripts/video.sh b/root/scripts/video.sh index a342d37..e90af4a 100644 --- a/root/scripts/video.sh +++ b/root/scripts/video.sh @@ -258,7 +258,7 @@ TidalClientSetup () { fi fi - + TidaldlStatusCheck tidal-dl -o $downloadPath/incomplete if [ -f /config/xdg/.tidal-dl.token.json ]; then @@ -269,6 +269,7 @@ TidalClientSetup () { fi if [ ! -f /config/xdg/.tidal-dl.token.json ]; then + TidaldlStatusCheck log "TIDAL :: ERROR :: Downgrade tidal-dl for workaround..." pip3 install tidal-dl==2022.3.4.2 log "TIDAL :: ERROR :: Loading client for required authentication, please authenticate, then exit the client..." @@ -294,6 +295,7 @@ TidalClientSetup () { rm -rf $downloadPath/incomplete/* fi + TidaldlStatusCheck log ":: TIDAL :: Upgrade tidal-dl to the latest..." pip3 install tidal-dl --upgrade