From 2270c8737afc8e31f78281c024f93f5c2161fd7a Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 19 Sep 2022 01:30:59 +0200 Subject: [PATCH] and audio seekpoints got floored to ints --- copyparty/web/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index be614cf1..891ad306 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -2511,9 +2511,9 @@ function scan_hash(v) { ts = null; if (m.length > 3) { - var tm = /^&[Tt=0]*([0-9]+[Mm:])?0*([0-9]+)[Ss]?$/.exec(m[3]); + var tm = /^&[Tt=0]*([0-9]+[Mm:])?0*([0-9\.]+)[Ss]?$/.exec(m[3]); if (tm) { - ts = parseInt(tm[1] || 0) * 60 + parseInt(tm[2] || 0); + ts = parseInt(tm[1] || 0) * 60 + parseFloat(tm[2] || 0); } tm = /^&[Tt=0]*([0-9\.]+)-([0-9\.]+)$/.exec(m[3]); if (tm) {