diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-05-11 14:20:24 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-11 14:20:24 -0300 |
commit | 505d5576afa183377a0571d7d6805c1c01f631b3 (patch) | |
tree | 1ed197c20b8b871afede9d8f697acf1345e61e72 | |
parent | c45b00706fe7b021b8e89881ebf8a30aaed7cc01 (diff) |
external-links: Amazon Music
-rw-r--r-- | src/strings-default.yaml | 1 | ||||
-rw-r--r-- | src/util/external-links.js | 12 |
2 files changed, 13 insertions, 0 deletions
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 @@ -211,6 +211,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', icon: 'appleMusic', |