« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/yaml.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/yaml.js')
-rw-r--r--src/data/yaml.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js
index cce2bbf0..ba627b29 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -761,6 +761,18 @@ export function parseURLs(entries) {
   });
 }
 
+export function parseExcludingURLs(value) {
+  if (typeof value !== 'string') {
+    return value;
+  }
+
+  switch (value) {
+    case 'paid bonus tracks': return 'paid bonus track';
+  }
+
+  return value;
+}
+
 export function parseAdditionalFiles(entries, {subdoc, AdditionalFile}) {
   return parseArrayEntries(entries, item => {
     if (typeof item !== 'object') return item;