diff options
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things/album.js | 13 | ||||
-rw-r--r-- | src/data/things/track.js | 14 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js index 01a232d0..336d777a 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -48,6 +48,9 @@ export class Album extends Thing { directory: directory(), urls: urls(), + bandcampAlbumIdentifier: simpleString(), + bandcampArtworkIdentifier: simpleString(), + date: simpleDate(), trackArtDate: simpleDate(), dateAddedToWiki: simpleDate(), @@ -218,6 +221,16 @@ export class Album extends Thing { 'Album': {property: 'name'}, 'Directory': {property: 'directory'}, + 'Bandcamp Album ID': { + property: 'bandcampAlbumIdentifier', + transform: String, + }, + + 'Bandcamp Artwork ID': { + property: 'bandcampArtworkIdentifier', + transform: String, + }, + 'Date': { property: 'date', transform: parseDate, diff --git a/src/data/things/track.js b/src/data/things/track.js index 93beb5e2..697dad44 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -42,6 +42,7 @@ import { reverseReferenceList, simpleDate, singleReference, + simpleString, urls, wikiData, } from '#composite/wiki-properties'; @@ -73,6 +74,9 @@ export class Track extends Thing { sharedAdditionalNames: sharedAdditionalNameList(), inferredAdditionalNames: inferredAdditionalNameList(), + bandcampTrackIdentifier: simpleString(), + bandcampArtworkIdentifier: simpleString(), + duration: duration(), urls: urls(), dateFirstReleased: simpleDate(), @@ -355,6 +359,16 @@ export class Track extends Thing { transform: parseAdditionalNames, }, + 'Bandcamp Track ID': { + property: 'bandcampTrackIdentifier', + transform: String, + }, + + 'Bandcamp Artwork ID': { + property: 'bandcampArtworkIdentifier', + transform: String, + }, + 'Duration': { property: 'duration', transform: parseDuration, |