« get me outta code hell

external-links: Amazon Music - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
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
commit505d5576afa183377a0571d7d6805c1c01f631b3 (patch)
tree1ed197c20b8b871afede9d8f697acf1345e61e72
parentc45b00706fe7b021b8e89881ebf8a30aaed7cc01 (diff)
external-links: Amazon Music
-rw-r--r--src/strings-default.yaml1
-rw-r--r--src/util/external-links.js12
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',