mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 14:37:17 +03:00
Raised cap to 8 sponsors.
This commit is contained in:
4
index.js
4
index.js
@@ -753,8 +753,8 @@ function getVoteOrganisedSponsorTimes(sponsorTimes, votes, UUIDs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//if there are too many indexes, find the best 4
|
//if there are too many indexes, find the best 4
|
||||||
if (finalSponsorTimeIndexes.length > 4) {
|
if (finalSponsorTimeIndexes.length > 8) {
|
||||||
finalSponsorTimeIndexes = getWeightedRandomChoice(finalSponsorTimeIndexes, votes, 4).finalChoices;
|
finalSponsorTimeIndexes = getWeightedRandomChoice(finalSponsorTimeIndexes, votes, 8).finalChoices;
|
||||||
}
|
}
|
||||||
|
|
||||||
//convert this to a final array to return
|
//convert this to a final array to return
|
||||||
|
|||||||
Reference in New Issue
Block a user