mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 21:17:15 +03:00
@@ -279,7 +279,7 @@ async function chooseSegments(videoID: VideoID, service: Service, segments: DBSe
|
|||||||
//Segments with less than -1 votes are already ignored before this function is called
|
//Segments with less than -1 votes are already ignored before this function is called
|
||||||
async function buildSegmentGroups(segments: DBSegment[]): Promise<OverlappingSegmentGroup[]> {
|
async function buildSegmentGroups(segments: DBSegment[]): Promise<OverlappingSegmentGroup[]> {
|
||||||
const reputationPromises = segments.map(segment =>
|
const reputationPromises = segments.map(segment =>
|
||||||
segment.userID ? getReputation(segment.userID) : null);
|
segment.userID ? getReputation(segment.userID).catch((e) => Logger.error(e)) : null);
|
||||||
|
|
||||||
//Create groups of segments that are similar to eachother
|
//Create groups of segments that are similar to eachother
|
||||||
//Segments must be sorted by their startTime so that we can build groups chronologically:
|
//Segments must be sorted by their startTime so that we can build groups chronologically:
|
||||||
|
|||||||
Reference in New Issue
Block a user