diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-10-30 15:41:50 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-10-30 16:04:28 -0300 |
commit | 859d1777a4f6f6d583466aaf72357d4d611f3909 (patch) | |
tree | cada415b97c507379c5b14c3147599c070de8aaa /src/data/yaml.js | |
parent | f5f21156d205a1ad8533a717e5552707d26551a2 (diff) |
data: "This Album Only" field for additional names
Diffstat (limited to 'src/data/yaml.js')
-rw-r--r-- | src/data/yaml.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js index 65e7bcae..e473790a 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -448,7 +448,11 @@ export function parseAdditionalFiles(entries) { export function parseAdditionalNames(entries) { return parseArrayEntries(entries, item => { if (typeof item === 'object' && typeof item['Name'] === 'string') - return {name: item['Name'], annotation: item['Annotation'] ?? null}; + return { + name: item['Name'], + annotation: item['Annotation'] ?? null, + specificAlbumExclusive: item['This Album Only'] ?? null, + }; if (typeof item !== 'string') return item; @@ -458,6 +462,7 @@ export function parseAdditionalNames(entries) { return { name: match.groups.main, annotation: match.groups.accent ?? null, + specificAlbumExclusive: null, }; }); } |