From 58fe495ea3d77ec13f94d46c57764bd89a2a71be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 5 Sep 2024 15:04:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20perf(bin):=20user=20athenticatio?= =?UTF-8?q?n=20enabled=20with=20spotdl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local/bin/downloadSpotify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/downloadSpotify b/.local/bin/downloadSpotify index 92be1b70..a2b8a96c 100755 --- a/.local/bin/downloadSpotify +++ b/.local/bin/downloadSpotify @@ -14,10 +14,10 @@ MUSIC_FOLDER="$HOME/music/listen-to" notify "Started syncing..." while IFS= read -r -d '' SPOTDL_FILE; do - spotdl sync "$(basename "$SPOTDL_FILE")" if [[ -f "$SPOTDL_FILE" && "$SPOTDL_FILE" == *.spotdl ]]; then FOLDER_NAME=$(basename "$(dirname "$SPOTDL_FILE")") cd "$(dirname "$SPOTDL_FILE")" || continue + spotdl sync --user-auth "$(basename "$SPOTDL_FILE")" notify "Synced $FOLDER_NAME" fi done < <(find "$MUSIC_FOLDER" -mindepth 1 -maxdepth 3 -type f -name '*.spotdl' -print0)