« get me outta code hell

handy combine-album.js utility - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-08-14 00:11:39 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-08-14 00:12:07 -0300
commitc047b8c57d4e5012578c072420d2b73dd5b59c4c (patch)
tree52270b0895d4bb61790aff43856ff4e3d2e78982 /ui.js
parent9c7e30f90f0e30535f87fbb28222c9a40940d9ec (diff)
handy combine-album.js utility
this isn't exposed via the mtui command so like, just run it directly
with node right now lol

(this commit also makes "." parse in timestamp positions)
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 2599427..2da7e02 100644
--- a/ui.js
+++ b/ui.js
@@ -1187,7 +1187,7 @@ class AppElement extends FocusElement {
     const duration = (metadata ? metadata.duration : Infinity)
 
     const data = lines
-      .map(line => line.match(/^\s*([0-9:]+)\s*(\S.*)\s*$/))
+      .map(line => line.match(/^\s*([0-9:.]+)\s*(\S.*)\s*$/))
       .filter(match => match)
       .map(match => ({timestamp: getSecFromTimestamp(match[1]), comment: match[2]}))
       .filter(({ timestamp: sec }) => !isNaN(sec))