From b8163d7d45eb672746303595f6b7cd1055ee88dd Mon Sep 17 00:00:00 2001 From: Mitsutaka Okazaki Date: Sun, 17 Dec 2023 14:16:21 +0900 Subject: [PATCH] Fix m3u loader. --- src/utils/m3u-parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/m3u-parser.ts b/src/utils/m3u-parser.ts index 67b61a9..748463f 100644 --- a/src/utils/m3u-parser.ts +++ b/src/utils/m3u-parser.ts @@ -72,7 +72,7 @@ export function parseM3U(text: string): PlayListEntry[] { if (durationInMs != null && loopDurationInMs != null) { if (loopDurationInMs > 0) { durationInMs += loopDurationInMs; - } else if (loopDurationInMs < 0 || loopDurationInMs == -0) { + } else if (loopDurationInMs < 0 || loopDurationInMs === -0) { durationInMs += durationInMs + loopDurationInMs; } else { // do nothind