Don't hide exclusive access for min duration

Fix #1156
This commit is contained in:
Ajay
2022-01-27 11:36:26 -05:00
parent 2a7f08f360
commit fa926ef686

View File

@@ -728,8 +728,8 @@ async function sponsorsLookup(id: string, keepOldSubmissions = true) {
// Hide all submissions smaller than the minimum duration
if (Config.config.minDuration !== 0) {
for (let i = 0; i < sponsorTimes.length; i++) {
if (sponsorTimes[i].segment[1] - sponsorTimes[i].segment[0] < Config.config.minDuration
&& sponsorTimes[i].actionType !== ActionType.Poi) {
const duration = sponsorTimes[i].segment[1] - sponsorTimes[i].segment[0] ;
if (duration > 0 && duration < Config.config.minDuration) {
sponsorTimes[i].hidden = SponsorHideType.MinimumDuration;
}
}