Give CC subtitles correct extension
This commit is contained in:
parent
97b9778801
commit
59d086006b
1 changed files with 1 additions and 0 deletions
|
|
@ -2029,6 +2029,7 @@ export default class Crunchy implements ServiceClass {
|
|||
if (!options.originalFontSize) subsAssReq.res.body = subsAssReq.res.body.replace(/( font-size:.+?;)/g, '').replace(/(font-size:.+?;)/g, '');
|
||||
sBody = vtt2ass(undefined, chosenFontSize, subsAssReq.res.body, '', undefined, options.fontName);
|
||||
sxData.fonts = fontsData.assFonts(sBody) as Font[];
|
||||
sxData.file = sxData.file.replace('.vtt','.ass');
|
||||
} else {
|
||||
sBody = '\ufeff' + subsAssReq.res.body;
|
||||
const sBodySplit = sBody.split('\r\n');
|
||||
|
|
|
|||
Loading…
Reference in a new issue