From 076212d5e9efcd67b17247e0bea4dae45cd93bb8 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 16 Jun 2025 17:15:43 -0300 Subject: [staging] external-links: bandcamp artistRelease & officialRelease contexts --- src/external-links.js | 27 +++++++++++++++++++++++++++ src/strings-default.yaml | 7 ++++++- 2 files changed, 33 insertions(+), 1 deletion(-) 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 = @@ -256,6 +259,30 @@ export const externalLinkSpec = [ icon: 'bandcamp', }, + { + 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'}, diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 7a40bd0d..38fa80bd 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -647,7 +647,12 @@ misc: amazonMusic: "Amazon Music" appleMusic: "Apple Music" artstation: "ArtStation" - bandcamp: "Bandcamp" + + bandcamp: + _: "Bandcamp" + + artistRelease: "Bandcamp (artist's release)" + officialRelease: "Bandcamp (official release)" bgreco: _: "bgreco.net" -- cgit 1.3.0-6-gf8a5