Skip to content

Commit 73e18fa

Browse files
CopilotProLoser
andcommitted
Add autoplay parameter to Spotify embed player in 19hz
Co-authored-by: ProLoser <67395+ProLoser@users.noreply.github.com>
1 parent 7ba83b4 commit 73e18fa

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)