mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-03-11 17:45:30 +00:00
[ADN] Fix subtitles for some players
This commit is contained in:
parent
533818b812
commit
a472ab5dd3
1 changed files with 4 additions and 4 deletions
8
adn.ts
8
adn.ts
|
|
@ -771,17 +771,17 @@ export default class AnimationDigitalNetwork implements ServiceClass {
|
|||
sxData.language = subLang;
|
||||
if(options.dlsubs.includes('all') || options.dlsubs.includes(subLang.locale)) {
|
||||
let subBody = '[Script Info]'
|
||||
+ '\nScriptType:V4.00'
|
||||
+ '\nScriptType:V4.00+'
|
||||
+ '\nWrapStyle: 0'
|
||||
+ '\nPlayResX: 1280'
|
||||
+ '\nPlayResY: 720'
|
||||
+ '\nScaledBorderAndShadow: yes'
|
||||
+ ''
|
||||
+ '\n[V4 Styles]'
|
||||
+ '\nFormat: Name,Fontname,Fontsize,PrimaryColour,SecondaryColour,OutlineColour,BackColour,Bold,Italic,Underline,StrikeOut,ScaleX,ScaleY,Spacing,Angle,BorderStyle,Outline,Shadow,Alignment,MarginL,MarginR,MarginV,Encoding'
|
||||
+ '\n[V4+ Styles]'
|
||||
+ '\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding'
|
||||
+ `\nStyle: Default,${options.fontName ?? 'Arial'},${options.fontSize ?? 50},&H00FFFFFF,&H00FFFFFF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,1.95,0,2,0,0,70,0`
|
||||
+ '\n[Events]'
|
||||
+ '\nFormat: Layer,Start,End,Style,Name,MarginL,MarginR,MarginV,Effect,Text';
|
||||
+ '\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text';
|
||||
|
||||
for (const sub of subtitles[subName]) {
|
||||
const [start, end, text, lineAlign, positionAlign] =
|
||||
|
|
|
|||
Loading…
Reference in a new issue