From 505d5576afa183377a0571d7d6805c1c01f631b3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 11 May 2024 14:20:24 -0300 Subject: external-links: Amazon Music --- src/strings-default.yaml | 1 + src/util/external-links.js | 12 ++++++++++++ 2 files changed, 13 insertions(+) (limited to 'src') diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 4b38b60d..ecf29e4d 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -514,6 +514,7 @@ misc: _: "{LINK} ({ANNOTATION})" annotation: "invalid URL" + amazonMusic: "Amazon Music" appleMusic: "Apple Music" artstation: "ArtStation" bandcamp: "Bandcamp" diff --git a/src/util/external-links.js b/src/util/external-links.js index 3b779afc..a616efb3 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -210,6 +210,18 @@ export const externalLinkSpec = [ // Generic domains, sorted alphabetically (by string) + { + match: { + domains: [ + 'music.amazon.co.jp', + 'music.amazon.com', + ], + }, + + platform: 'amazonMusic', + icon: 'globe', + }, + { match: {domain: 'music.apple.com'}, platform: 'appleMusic', -- cgit 1.3.0-6-gf8a5