mirror of
https://github.com/snobu/destreamer.git
synced 2026-03-04 19:18:25 +00:00
check for single url files/ files ending in url (#186)
This commit is contained in:
@@ -127,6 +127,7 @@ export async function parseInputFile(inputFile: string, defaultOutDir: string,
|
|||||||
if (foundUrl) {
|
if (foundUrl) {
|
||||||
outDirList.push(...Array(guidList.length - outDirList.length)
|
outDirList.push(...Array(guidList.length - outDirList.length)
|
||||||
.fill(defaultOutDir));
|
.fill(defaultOutDir));
|
||||||
|
foundUrl = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const guids: Array<string> | null = await extractGuids(line, apiClient);
|
const guids: Array<string> | null = await extractGuids(line, apiClient);
|
||||||
@@ -140,6 +141,12 @@ export async function parseInputFile(inputFile: string, defaultOutDir: string,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if foundUrl is still true after the loop we have some url without an outDir
|
||||||
|
if (foundUrl) {
|
||||||
|
outDirList.push(...Array(guidList.length - outDirList.length)
|
||||||
|
.fill(defaultOutDir));
|
||||||
|
}
|
||||||
|
|
||||||
return [guidList, outDirList];
|
return [guidList, outDirList];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user