format fix

This commit is contained in:
SashaXser 2024-01-19 14:31:03 +04:00 committed by GitHub
parent 14b6f84f94
commit ea60947092
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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