diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-05-01 18:51:22 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-05-01 19:16:11 -0300 |
| commit | bf8646c7384d3d73827e640c2afec5a8bc08da72 (patch) | |
| tree | 72dd91533a1023ce0f64ac2de5cf5185dfea3c1f /src | |
| parent | a1d39a16ab3ed60a9af4ef277fbf5c4a98a84b2d (diff) | |
[preview] content: composer's release -> artist's release
Diffstat (limited to 'src')
| -rw-r--r-- | src/content/dependencies/generateListenLineOrList.js | 6 | ||||
| -rw-r--r-- | src/external-links.js | 6 | ||||
| -rw-r--r-- | src/strings-default.yaml | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/content/dependencies/generateListenLineOrList.js b/src/content/dependencies/generateListenLineOrList.js index f0d8dae9..68f48d5e 100644 --- a/src/content/dependencies/generateListenLineOrList.js +++ b/src/content/dependencies/generateListenLineOrList.js @@ -5,7 +5,7 @@ function getReleaseContext(urlString, { _artistURLs, albumArtistURLs, }) { - const composerBandcampDomains = + const artistBandcampDomains = albumArtistURLs .filter(url => url.hostname.endsWith('.bandcamp.com')) .map(url => url.hostname); @@ -16,8 +16,8 @@ function getReleaseContext(urlString, { return ['officialRelease']; } - if (composerBandcampDomains.includes(url.hostname)) { - return ['composerRelease']; + if (artistBandcampDomains.includes(url.hostname)) { + return ['artistRelease']; } return []; diff --git a/src/external-links.js b/src/external-links.js index 409ff503..6624082b 100644 --- a/src/external-links.js +++ b/src/external-links.js @@ -31,7 +31,7 @@ export const externalLinkContexts = [ 'group', 'track', - 'composerRelease', + 'artistRelease', 'officialRelease', ]; @@ -260,10 +260,10 @@ export const externalLinkSpec = [ { match: { domain: '.bandcamp.com', - context: 'composerRelease', + context: 'artistRelease', }, - platform: 'bandcamp.composerRelease', + platform: 'bandcamp.artistRelease', handle: {domain: /^[^.]+/}, icon: 'bandcamp', diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 227bcac2..d4779387 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -706,7 +706,7 @@ misc: bandcamp: _: "Bandcamp" - composerRelease: "Bandcamp (composer's release)" + artistRelease: "Bandcamp (artist's release)" officialRelease: "Bandcamp (official release)" bgreco: |