diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-06-16 17:15:43 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-09-27 05:16:29 -0300 |
commit | 076212d5e9efcd67b17247e0bea4dae45cd93bb8 (patch) | |
tree | 937f2f2d5abef1eeacf79cb2e28c3f9368c434a6 /src/external-links.js | |
parent | 59616fad077931e61529db8180258144a97afae2 (diff) |
[staging] external-links: bandcamp artistRelease & officialRelease contexts
Diffstat (limited to 'src/external-links.js')
-rw-r--r-- | src/external-links.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/external-links.js b/src/external-links.js index 1055a391..67ad5f50 100644 --- a/src/external-links.js +++ b/src/external-links.js @@ -32,6 +32,9 @@ export const externalLinkContexts = [ 'generic', 'group', 'track', + + 'artistRelease', + 'officialRelease', ]; export const isExternalLinkContext = @@ -257,6 +260,30 @@ export const externalLinkSpec = [ }, { + match: { + domain: '.bandcamp.com', + context: 'artistRelease', + }, + + platform: 'bandcamp.artistRelease', + handle: {domain: /^[^.]+/}, + + icon: 'bandcamp', + }, + + { + match: { + domain: '.bandcamp.com', + context: 'officialRelease', + }, + + platform: 'bandcamp.officialRelease', + handle: {domain: /^[^.]+/}, + + icon: 'bandcamp', + }, + + { match: {domain: '.bandcamp.com'}, platform: 'bandcamp', |