pull/6/head
RandomNinjaAtk 3 years ago committed by GitHub
parent 7a7a9d2def
commit dca695e628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -292,7 +292,7 @@ TidalClientSetup () {
fi
# check for backup token and use it if exists
if [ ! -f /root/.tidal-dl.token.json ]; then
if [ ! -f /config/xdg/.tidal-dl.token.json ]; then
if [ -f /config/backup/tidal-dl.token.json ]; then
cp -p /config/backup/tidal-dl.token.json /root/.tidal-dl.token.json
# remove backup token
@ -300,7 +300,7 @@ TidalClientSetup () {
fi
fi
if [ -f /root/.tidal-dl.token.json ]; then
if [ -f /config/xdg/.tidal-dl.token.json ]; then
if [[ $(find "/config/xdg/.tidal-dl.token.json" -mtime +6 -print) ]]; then
log ":: TIDAL :: ERROR :: Token expired, removing..."
rm /config/xdg/.tidal-dl.token.json

Loading…
Cancel
Save