fixed ass fixing process

This commit is contained in:
Daniel Haller 2024-04-24 04:16:45 +02:00
parent e1d36be2d7
commit e3c823d599

View File

@ -20,14 +20,16 @@ export async function downloadCRSub(
var parsedASS = parse(await response.text())
// Disabling Changing ASS because still broken in vlc
parsedASS.info['Original Script'] = 'crd [https://github.com/stratuma/]'
// parsedASS.info.PlayResX = "1920";
// parsedASS.info.PlayResY = "1080";
parsedASS.info.PlayResX = "1920";
parsedASS.info.PlayResY = "1080";
// for (const s of parsedASS.styles.style) {
// (s.Fontsize = "54"), (s.Outline = "4");
// }
for (const s of parsedASS.styles.style) {
if (s.Fontname === 'Arial') {
(s.Fontsize = "54"), (s.Outline = "4");
}
}
const fixed = stringify(parsedASS)