mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 22:47:18 +03:00
Prevent retry fetching in another place
https://github.com/ajayyy/SponsorBlock/issues/667
This commit is contained in:
@@ -621,7 +621,11 @@ async function sponsorsLookup(id: string) {
|
|||||||
|
|
||||||
//TODO lower when server becomes better (back to 1 second)
|
//TODO lower when server becomes better (back to 1 second)
|
||||||
//some error occurred, try again in a second
|
//some error occurred, try again in a second
|
||||||
setTimeout(() => sponsorsLookup(id), 5000 + Math.random() * 15000 + 5000 * sponsorLookupRetries);
|
setTimeout(() => {
|
||||||
|
if (sponsorVideoID && sponsorTimes?.length === 0) {
|
||||||
|
sponsorsLookup(sponsorVideoID);
|
||||||
|
}
|
||||||
|
}, 5000 + Math.random() * 15000 + 5000 * sponsorLookupRetries);
|
||||||
|
|
||||||
sponsorLookupRetries++;
|
sponsorLookupRetries++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user