mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
@@ -756,7 +756,7 @@ async function sponsorsLookup(id: string, keepOldSubmissions = true) {
|
|||||||
// Hide all submissions smaller than the minimum duration
|
// Hide all submissions smaller than the minimum duration
|
||||||
if (Config.config.minDuration !== 0) {
|
if (Config.config.minDuration !== 0) {
|
||||||
for (const segment of sponsorTimes) {
|
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) {
|
if (duration > 0 && duration < Config.config.minDuration) {
|
||||||
segment.hidden = SponsorHideType.MinimumDuration;
|
segment.hidden = SponsorHideType.MinimumDuration;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user