From b02134c01676183e853eaa7ab5081fc0f26f04ee Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 4 Aug 2023 13:15:43 -0400 Subject: [PATCH] Don't send angle brackets --- src/routes/getBranding.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/routes/getBranding.ts b/src/routes/getBranding.ts index fd99638..be8b4bb 100644 --- a/src/routes/getBranding.ts +++ b/src/routes/getBranding.ts @@ -53,6 +53,10 @@ export async function getVideoBranding(res: Response, videoID: VideoID, service: const thumbnails = getThumbnails(); const segments = getSegments(); + for (const title of await titles) { + title.title = title.title.replace("<", "‹"); + } + return { titles: await titles, thumbnails: await thumbnails, @@ -126,6 +130,8 @@ export async function getVideoBrandingByHash(videoHashPrefix: VideoIDHash, servi }; (await branding.titles).map((title) => { + title.title = title.title.replace("<", "‹"); + initResult(title); dbResult[title.videoID].titles.push(title); });