mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 08:21:56 +00:00
Merge pull request #896 from stratumadev/master
Fixed only subtitle download ${height} error
This commit is contained in:
commit
a23c1f2168
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue