mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-15 16:07:06 +03:00
@@ -728,8 +728,8 @@ 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 (let i = 0; i < sponsorTimes.length; i++) {
|
for (let i = 0; i < sponsorTimes.length; i++) {
|
||||||
if (sponsorTimes[i].segment[1] - sponsorTimes[i].segment[0] < Config.config.minDuration
|
const duration = sponsorTimes[i].segment[1] - sponsorTimes[i].segment[0] ;
|
||||||
&& sponsorTimes[i].actionType !== ActionType.Poi) {
|
if (duration > 0 && duration < Config.config.minDuration) {
|
||||||
sponsorTimes[i].hidden = SponsorHideType.MinimumDuration;
|
sponsorTimes[i].hidden = SponsorHideType.MinimumDuration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user