1.0.0022 - cache ablum list once per run

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

@ -36,7 +36,7 @@ Configuration () {
log ""
sleep 2
log "############# $dockerTitle"
log "############# SCRIPT VERSION 1.0.0021"
log "############# SCRIPT VERSION 1.0.0022"
log "############# DOCKER VERSION $dockerVersion"
if [ -z $topLimit ]; then
@ -283,6 +283,10 @@ TidalClientSetup () {
log ":: TIDAL :: ERROR :: Loading client for required authentication, please authenticate, then exit the client..."
tidal-dl
fi
if [ -d /config/extended/cache/tidal ]; then
find /config/extended/cache/deezer -type f -name "*.json" -delete
fi
}
DownloadProcess () {
@ -406,6 +410,9 @@ DeemixClientSetup () {
else
log ":: DEEZER :: ERROR :: arlToken setting invalid, currently set to: $arlToken"
fi
if [ -d /config/extended/cache/deezer ]; then
find /config/extended/cache/deezer -type f -name "*-albums.json" -delete
fi
}
ConfigureLidarrWithOptimalSettings () {
@ -572,9 +579,7 @@ SearchProcess () {
if [ ! -d /config/extended/cache/tidal ]; then
mkdir -p /config/extended/cache/tidal
fi
find /config/extended/cache/tidal -type f -mtime +7 -delete
if [ ! -f /config/extended/cache/tidal/$tidalArtistId-videos.json ]; then
curl -s "https://api.tidal.com/v1/artists/${tidalArtistId}/videos?limit=10000&countryCode=$CountryCode&filter=ALL" -H 'x-tidal-token: CzET4vdadNUFQ5JU' > /config/extended/cache/tidal/$tidalArtistId-videos.json
fi

Loading…
Cancel
Save