implement more lax potplayer matching #867

pull/900/head
Mikael Finstad 5 years ago
parent e908b8b52a
commit 9a6b689377
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -91,7 +91,7 @@ export function parseCuesheet(cuesheet) {
export function parsePbf(text) {
const chapters = text.split('\n').map((line) => {
const match = line.match(/^[0-9]+=([0-9]+)\*([^*]+)*/);
const match = line.match(/^[0-9]+=([0-9]+)\*([^*]+)*([^*]+)?/);
if (match) return { time: parseInt(match[1], 10) / 1000, name: match[2] };
return undefined;
}).filter((it) => it);

Loading…
Cancel
Save