diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-16 12:08:32 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 13:39:53 -0400 |
commit | a618ec62bb07a0037e9431b2d7fda0ea55c29881 (patch) | |
tree | 2723ddeb9135257f0e216b3533563d2a9358df2c /src/data/things/artist.js | |
parent | 226c316f21a8fb7eb5ca549221c3da0473ca5d9d (diff) |
data: Closely Linked Artists
Diffstat (limited to 'src/data/things/artist.js')
-rw-r--r-- | src/data/things/artist.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js index 6d5e33c0..8ac370c2 100644 --- a/src/data/things/artist.js +++ b/src/data/things/artist.js @@ -34,7 +34,7 @@ export class Artist extends Thing { static [Thing.referenceType] = 'artist'; static [Thing.wikiDataArray] = 'artistData'; - static [Thing.getPropertyDescriptors] = ({Album, Flash, Track}) => ({ + static [Thing.getPropertyDescriptors] = ({Album, Flash, Group, Track}) => ({ // Update & expose name: name('Unnamed Artist'), @@ -74,6 +74,10 @@ export class Artist extends Thing { class: input.value(Flash), }), + groupData: wikiData({ + class: input.value(Group), + }), + trackData: wikiData({ class: input.value(Track), }), @@ -135,6 +139,11 @@ export class Artist extends Thing { list: input.value('commentatorArtists'), }), + closelyLinkedGroups: reverseReferenceList({ + data: 'groupData', + list: input.value('closelyLinkedArtists'), + }), + totalDuration: artistTotalDuration(), }); |