Skip to content

Commit 4ce7c4e

Browse files
committed
fix(note-block): add artist parameter to Bandcamp embed URLs
Include the artist subdomain in Bandcamp track and album embed URLs to ensure proper embed resolution.
1 parent e477bc8 commit 4ce7c4e

File tree

1 file changed

+2
-2
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/note-block

1 file changed

+2
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/note-block/note-block.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function getEmbedInfo(url: string): EmbedInfo | null {
274274
const bandcampTrackMatch = url.match(/([a-zA-Z0-9-]+)\.bandcamp\.com\/track\/([a-zA-Z0-9-]+)/)
275275
if (bandcampTrackMatch) {
276276
return {
277-
url: `https://bandcamp.com/EmbeddedPlayer/track=${bandcampTrackMatch[2]}/size=large/bgcol=333333/linkcol=0f91ff/tracklist=false/transparent=true/`,
277+
url: `https://bandcamp.com/EmbeddedPlayer/artist=${bandcampTrackMatch[1]}/track=${bandcampTrackMatch[2]}/size=large/bgcol=333333/linkcol=0f91ff/tracklist=false/transparent=true/`,
278278
type: 'iframe',
279279
aspectRatio: '1/1',
280280
}
@@ -283,7 +283,7 @@ function getEmbedInfo(url: string): EmbedInfo | null {
283283
const bandcampAlbumMatch = url.match(/([a-zA-Z0-9-]+)\.bandcamp\.com\/album\/([a-zA-Z0-9-]+)/)
284284
if (bandcampAlbumMatch) {
285285
return {
286-
url: `https://bandcamp.com/EmbeddedPlayer/album=${bandcampAlbumMatch[2]}/size=large/bgcol=333333/linkcol=0f91ff/transparent=true/`,
286+
url: `https://bandcamp.com/EmbeddedPlayer/artist=${bandcampAlbumMatch[1]}/album=${bandcampAlbumMatch[2]}/size=large/bgcol=333333/linkcol=0f91ff/transparent=true/`,
287287
type: 'iframe',
288288
aspectRatio: '1/1',
289289
}

0 commit comments

Comments
 (0)