File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 run : |
3535 sed -i "s/__APIFY_TOKEN__/${APIFY_TOKEN}/g" map.js
3636 sed -i "s/__GOOGLE_TOKEN__/${GOOGLE_TOKEN}/g" index.html
37- sed -i "s/YOUR_SPOTIFY_CLIENT_ID /${SPOTIFY_CLIENT_ID}/g" 19hz/map.js
38- sed -i "s/YOUR_SPOTIFY_CLIENT_SECRET /${SPOTIFY_CLIENT_SECRET}/g" 19hz/map.js
37+ sed -i "s/__SPOTIFY_CLIENT_ID__ /${SPOTIFY_CLIENT_ID}/g" 19hz/map.js
38+ sed -i "s/__SPOTIFY_CLIENT_SECRET__ /${SPOTIFY_CLIENT_SECRET}/g" 19hz/map.js
3939
4040 - name : Setup Pages
4141 uses : actions/configure-pages@v4
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ const CATEGORY_DELIMITER = '~';
44
55// Spotify API configuration
66// For production, these should be loaded from environment variables or a secure backend
7- const SPOTIFY_CLIENT_ID = 'YOUR_SPOTIFY_CLIENT_ID ' ;
8- const SPOTIFY_CLIENT_SECRET = 'YOUR_SPOTIFY_CLIENT_SECRET ' ;
7+ const SPOTIFY_CLIENT_ID = '__SPOTIFY_CLIENT_ID__ ' ;
8+ const SPOTIFY_CLIENT_SECRET = '__SPOTIFY_CLIENT_SECRET__ ' ;
99
1010// Cache for Spotify access token
1111let spotifyAccessToken = null ;
@@ -80,7 +80,7 @@ async function searchSpotifyArtist(artistName) {
8080
8181 try {
8282 const response = await fetch (
83- `https://api.spotify.com/v1/search?q=${ encodeURIComponent ( artistName ) } &type=artist&limit=1` ,
83+ `https://api.spotify.com/v1/search?q=artist: ${ encodeURIComponent ( artistName ) } &type=artist&limit=1` ,
8484 {
8585 headers : {
8686 'Authorization' : `Bearer ${ token } `
You can’t perform that action at this time.
0 commit comments