mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 20:17:02 +03:00
Increase max segments from 8 to 32
This commit is contained in:
committed by
GitHub
parent
69e7b35abb
commit
97bb7b534a
@@ -134,7 +134,7 @@ function chooseSegments(segments) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//if there are too many groups, find the best 8
|
//if there are too many groups, find the best 8
|
||||||
return getWeightedRandomChoice(similarSegmentsGroups, 8).map(
|
return getWeightedRandomChoice(similarSegmentsGroups, 32).map(
|
||||||
//randomly choose 1 good segment per group and return them
|
//randomly choose 1 good segment per group and return them
|
||||||
group => getWeightedRandomChoice(group.segments, 1)[0]
|
group => getWeightedRandomChoice(group.segments, 1)[0]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user