feat: support adding playlist id from env

This commit is contained in:
javalsai 2024-10-18 21:27:10 +02:00
parent 422d66d5b5
commit 363afedaf2
Signed by: javalsai
SSH Key Fingerprint: SHA256:3G83yKhBUWVABVX/vPWH88xnK4+ptMtHkZGCRXD4Mk8

View File

@ -5,7 +5,7 @@ MYSELF=$(realpath "$0")
MYDIR=$(dirname "$MYSELF") MYDIR=$(dirname "$MYSELF")
. "$MYDIR"/get-tokens.sh . "$MYDIR"/get-tokens.sh
PLAYLIST_ID="2BoXyJeV0fhEHOy4uiByxr" PLAYLIST_ID=${PLAYLIST_ID:-"2BoXyJeV0fhEHOy4uiByxr"}
i=0 i=0
iter_url=https://api.spotify.com/v1/playlists/$PLAYLIST_ID/tracks iter_url=https://api.spotify.com/v1/playlists/$PLAYLIST_ID/tracks