mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 20:17:02 +03:00
Don't send angle brackets
This commit is contained in:
@@ -53,6 +53,10 @@ export async function getVideoBranding(res: Response, videoID: VideoID, service:
|
|||||||
const thumbnails = getThumbnails();
|
const thumbnails = getThumbnails();
|
||||||
const segments = getSegments();
|
const segments = getSegments();
|
||||||
|
|
||||||
|
for (const title of await titles) {
|
||||||
|
title.title = title.title.replace("<", "‹");
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
titles: await titles,
|
titles: await titles,
|
||||||
thumbnails: await thumbnails,
|
thumbnails: await thumbnails,
|
||||||
@@ -126,6 +130,8 @@ export async function getVideoBrandingByHash(videoHashPrefix: VideoIDHash, servi
|
|||||||
};
|
};
|
||||||
|
|
||||||
(await branding.titles).map((title) => {
|
(await branding.titles).map((title) => {
|
||||||
|
title.title = title.title.replace("<", "‹");
|
||||||
|
|
||||||
initResult(title);
|
initResult(title);
|
||||||
dbResult[title.videoID].titles.push(title);
|
dbResult[title.videoID].titles.push(title);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user