fix extra "1" appearing on chapters

This commit is contained in:
Thomas Zarebczan 2022-05-04 13:08:51 -04:00
parent 4b6e4db7cd
commit f550be4306
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -64,7 +64,7 @@ function parse(claim: StreamClaim) {
const splitIndex = line.indexOf(' ');
if (splitIndex >= 0 && splitIndex < line.length - 2) {
const ts = line.substring(0, splitIndex);
const label = line.substring(splitIndex) + 1;
const label = line.substring(splitIndex + 1);
if (ts && label && isValidTimestamp(ts)) {
const seconds = timestampStrToSeconds(ts);