Skip to content

Commit

Permalink
Fix m3u loader.
Browse files Browse the repository at this point in the history
  • Loading branch information
okaxaki committed Dec 17, 2023
1 parent 128dc74 commit b8163d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/m3u-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8163d7

Please sign in to comment.