Skip to content

Commit

Permalink
馃悰 fix segment skipping (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
moisout committed Jul 2, 2021
1 parent 945e747 commit 2ed89eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/plugins/services/sponsorBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class SponsorBlock {
const len = segments.segments.length;
while (i < len) {
const currentSegment = segments.segments[i];
if (currentSegment.segment[0] <= time && currentSegment.segment[1] >= time) {
if (currentSegment.segment[0] <= time && currentSegment.segment[1] > time) {
return currentSegment;
}
i++;
Expand Down

0 comments on commit 2ed89eb

Please sign in to comment.