mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Don't send angle brackets
This commit is contained in:
parent
c3c8f38423
commit
b02134c016
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue