Normalize Russian ASS Style (thx to
Some checks failed
auto-documentation / documentation (push) Has been cancelled
build and push docker image / build-node (push) Has been cancelled
Style and build test / tsc (push) Has been cancelled
Style and build test / eslint (push) Has been cancelled
Style and build test / prettier (push) Has been cancelled
Style and build test / build-test-arm64 (push) Has been cancelled
Style and build test / build-test-x64 (push) Has been cancelled

PystoyPlayer)
This commit is contained in:
stratumadev 2025-11-02 18:16:13 +01:00
parent 61d062a846
commit e5b7d5d3d5

View file

@ -2869,6 +2869,11 @@ export default class Crunchy implements ServiceClass {
// Remove YCbCr
sBody = sBody.replace(/^[ \t]*YCbCr Matrix:\s*.*\r?\n?/m, '');
// Force outline thickness for ru-RU: if the 17th field (Outline) equals 2.6 → 2
if (langItem.cr_locale === 'ru-RU') {
sBody = sBody.replace(/^[ \t]*(Style:\s*[^,\n]*(?:,[^,\n]*){15}),\s*2(?:[.,]6(?:0+)?)?(\s*,)/gm, '$1,2$2');
}
}
sxData.title = langItem.language;