diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/external-links.js | 27 | ||||
-rw-r--r-- | src/strings-default.yaml | 7 |
2 files changed, 33 insertions, 1 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', 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" |