Merge pull request #896 from stratumadev/master
Some checks are pending
auto-documentation / documentation (push) Waiting to run
build and push docker image / build-node (push) Waiting to run
Style and build test / eslint (push) Waiting to run
Style and build test / test (push) Blocked by required conditions

Fixed only subtitle download ${height} error
This commit is contained in:
Stratum 2025-04-16 01:55:32 +02:00 committed by GitHub
commit a23c1f2168
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,10 @@ const parseFileName = (input: string, variables: Variable[], numbers: number, ov
for (let i = 0; i < vars.length; i++) {
const type = vars[i];
const varName = type.slice(2, -1);
const use = overridenVars.find(a => a.name === varName);
let use = overridenVars.find(a => a.name === varName);
if (use === undefined && type === '${height}') {
use = { type: 'number', replaceWith: 0 } as Variable<string>;
}
if (use === undefined) {
console.info(`[ERROR] Found variable '${type}' in fileName but no values was internally found!`);
continue;