diff options
author | Ajay <[email protected]> | 2022-02-22 01:05:57 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2022-02-22 01:05:57 -0500 |
commit | 30fe40a5234b69237b61a99899496cbba4f89c48 (patch) | |
tree | c5f78c05b2a32b46f51a88ee2cf48fdea88a5f9e /src | |
parent | 6e23650a99765cf15084a8d13c0af218fbd3af6a (diff) | |
download | SponsorBlock-30fe40a5234b69237b61a99899496cbba4f89c48.tar.gz SponsorBlock-30fe40a5234b69237b61a99899496cbba4f89c48.zip |
Fix minimum duration
Fix #1202
Diffstat (limited to 'src')
-rw-r--r-- | src/content.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index 26a2b772..358144cd 100644 --- a/src/content.ts +++ b/src/content.ts @@ -756,7 +756,7 @@ async function sponsorsLookup(id: string, keepOldSubmissions = true) { // Hide all submissions smaller than the minimum duration if (Config.config.minDuration !== 0) { for (const segment of sponsorTimes) { - const duration = segment[1] - segment[0]; + const duration = segment.segment[1] - segment.segment[0]; if (duration > 0 && duration < Config.config.minDuration) { segment.hidden = SponsorHideType.MinimumDuration; } |