mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-19 05:58:32 +03:00
format fix
This commit is contained in:
@@ -133,7 +133,7 @@ export async function getVideoBrandingByHash(videoHashPrefix: VideoIDHash, servi
|
|||||||
|
|
||||||
(await branding.titles).forEach((title) => {
|
(await branding.titles).forEach((title) => {
|
||||||
title.title = title.title.replace("<", "‹");
|
title.title = title.title.replace("<", "‹");
|
||||||
|
|
||||||
initResult(title);
|
initResult(title);
|
||||||
dbResult[title.videoID].titles.push(title);
|
dbResult[title.videoID].titles.push(title);
|
||||||
});
|
});
|
||||||
@@ -141,11 +141,11 @@ export async function getVideoBrandingByHash(videoHashPrefix: VideoIDHash, servi
|
|||||||
initResult(thumbnail);
|
initResult(thumbnail);
|
||||||
dbResult[thumbnail.videoID].thumbnails.push(thumbnail);
|
dbResult[thumbnail.videoID].thumbnails.push(thumbnail);
|
||||||
});
|
});
|
||||||
|
|
||||||
(await branding.segments).forEach((segment) => {
|
(await branding.segments).forEach((segment) => {
|
||||||
initResult(segment);
|
initResult(segment);
|
||||||
dbResult[segment.videoID].segments.push(segment);
|
dbResult[segment.videoID].segments.push(segment);
|
||||||
});
|
});
|
||||||
|
|
||||||
return dbResult;
|
return dbResult;
|
||||||
}, brandingHashKey(videoHashPrefix, service));
|
}, brandingHashKey(videoHashPrefix, service));
|
||||||
@@ -317,4 +317,4 @@ export async function getBrandingByHashEndpoint(req: Request, res: Response) {
|
|||||||
Logger.error(e as string);
|
Logger.error(e as string);
|
||||||
return res.status(500).send([]);
|
return res.status(500).send([]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user