This commit is contained in:
Ajay
2024-01-21 19:46:18 -05:00
3 changed files with 16 additions and 18 deletions

View File

@@ -131,18 +131,18 @@ export async function getVideoBrandingByHash(videoHashPrefix: VideoIDHash, servi
};
};
(await branding.titles).map((title) => {
(await branding.titles).forEach((title) => {
title.title = title.title.replace("<", "");
initResult(title);
dbResult[title.videoID].titles.push(title);
});
(await branding.thumbnails).map((thumbnail) => {
(await branding.thumbnails).forEach((thumbnail) => {
initResult(thumbnail);
dbResult[thumbnail.videoID].thumbnails.push(thumbnail);
});
(await branding.segments).map((segment) => {
(await branding.segments).forEach((segment) => {
initResult(segment);
dbResult[segment.videoID].segments.push(segment);
});
@@ -317,4 +317,4 @@ export async function getBrandingByHashEndpoint(req: Request, res: Response) {
Logger.error(e as string);
return res.status(500).send([]);
}
}
}