From 29a897ad68815b2c88c23f283de2e042c7d71c6f Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 13 Jun 2022 15:28:30 +0000 Subject: [PATCH] Update download.sh --- root/scripts/download.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/scripts/download.sh b/root/scripts/download.sh index 949c363..07413e3 100644 --- a/root/scripts/download.sh +++ b/root/scripts/download.sh @@ -100,6 +100,9 @@ DownloadProcess () { if [ "$2" = "DEEZER" ]; then deemix -b flac -p /downloads/lidarr/incomplete "https://www.deezer.com/us/album/$1" + if [ -d "/tmp/deemix-imgs" ]; then + rm -rf /tmp/deemix-imgs + fi touch /config/logs/downloaded/deezer/$1 downloadCount=$(find /downloads/lidarr/incomplete/ -type f -regex ".*/.*\.\(flac\|opus\|m4a\|mp3\)" | wc -l) if [ $downloadCount -le 0 ]; then