From c047b8c57d4e5012578c072420d2b73dd5b59c4c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 14 Aug 2021 00:11:39 -0300 Subject: 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) --- ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.js') 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)) -- cgit 1.3.0-6-gf8a5