🚀 perf(bin): user athentication enabled with spotdl
This commit is contained in:
parent
1a9fc5d307
commit
58fe495ea3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue