mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 00:12:05 +00:00
Fail gracefully
Make sure it fails item if unable to generate closeness data
This commit is contained in:
parent
417656fd5f
commit
a29e8a0d06
1 changed files with 4 additions and 0 deletions
|
|
@ -134,6 +134,10 @@ class Merger {
|
|||
db: parseFloat(values[5].replace('(', '').replace(')', ''))
|
||||
});
|
||||
}
|
||||
if (closeness.length === 0) {
|
||||
console.info(`Failed to analyze time offset required for ${vna.lang.code}, check for addtional logs.`);
|
||||
continue itemLoop;
|
||||
}
|
||||
closeness.sort(function(a, b) {
|
||||
return b.overall - a.overall;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue