« get me outta code hell

content, css: generateAlbumTrackList: handle missing durations - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/strings-default.yaml
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-06 18:20:51 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-10 13:31:05 -0400
commitc53d9751c7a8d8687a6a27b308462c5ca77953e5 (patch)
tree44af9d5ebe76f7f3c1c0ea29171f363fd032c6db /src/strings-default.yaml
parentb451bcdea910c463f63bb2d1f9293d3f91aa1914 (diff)
content, css: generateAlbumTrackList: handle missing durations
With bad CSS, at the moment.
Diffstat (limited to 'src/strings-default.yaml')
-rw-r--r--src/strings-default.yaml11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index a1e4d84..0a6109a 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -367,10 +367,17 @@ trackList:
     fromOther: "From somewhere else:"
 
   item:
-    withDuration: "({DURATION}) {TRACK}"
-    withDuration.withArtists: "({DURATION}) {TRACK} {BY}"
+    withDuration: "{DURATION} {TRACK}"
     withArtists: "{TRACK} {BY}"
+    withDuration.withArtists: "{DURATION} {TRACK} {BY}"
+
+    withDuration.duration:
+      _: "({DURATION})"
+      missing: "0:00"
+      missing.info: "no duration provided"
+
     withArtists.by: "by {ARTISTS}"
+
     rerelease: "{TRACK} (re-release)"
 
 #