Skip to content

Commit 7f262ac

Browse files
authored
Merge pull request #52 from ProLoser/copilot/enable-autoplay-for-artist
Enable autoplay for Spotify embed player in 19hz
2 parents f4a7dc5 + 73e18fa commit 7f262ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

19hz/map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ window.updateSpotifyPlayer = async function(artistName) {
492492
}
493493

494494
if (artistId) {
495-
// Use the proper artist embed URL with the artist ID
496-
spotifyPlayer.src = `https://open.spotify.com/embed/artist/${artistId}`;
495+
// Use the proper artist embed URL with the artist ID and enable autoplay
496+
spotifyPlayer.src = `https://open.spotify.com/embed/artist/${artistId}?autoplay=1`;
497497
spotifyPlayer.style.display = 'block';
498498
} else {
499499
console.warn(`Could not find Spotify artist ID for: ${artistName}`);

0 commit comments

Comments
 (0)