Merge uploader 2.1.87 fixes into statistics development branch
This commit is contained in:
commit
ff62172778
26 files changed
+407
-103
No files matched your search
@@ -435,6 +435,7 @@ class UploadManager extends EventEmitter {
|
||||
this._batchResults = results;
|
||||
this._batchTaskCount = tasks.length;
|
||||
this._additionalPromises = []; // Track jobs added mid-batch via addJobs()
|
||||
this._batchTaskCount = tasks.length;
|
||||
|
||||
const DEDUP_CHUNK = 200;
|
||||
for (let i = 0; i < tasks.length; i += DEDUP_CHUNK) {
|
||||
@@ -1374,6 +1375,11 @@ class UploadManager extends EventEmitter {
|
||||
if (task.hoster === 'byse.sx') {
|
||||
baselineOpts.byseBaseline = await this._getBaseline('byse.sx', task.apiKey, signal);
|
||||
if (fileProbe && fileProbe.ok !== false) baselineOpts.probeIsVideoLike = fileProbe.isVideoLike === true;
|
||||
baselineOpts.onAttachmentsHidden = (count) => this._rotLog('byse-attachments-hidden', {
|
||||
jobId: task.jobId,
|
||||
fileName: path.basename(task.file),
|
||||
count
|
||||
});
|
||||
}
|
||||
if (task.hoster === 'doodstream.com') baselineOpts.doodBaseline = await this._getBaseline('doodstream.com', task.apiKey, signal);
|
||||
return uploadFile(task.hoster, task.file, task.apiKey, progressCb, signal, throttle, baselineOpts);
|
||||
@@ -1560,6 +1566,7 @@ class UploadManager extends EventEmitter {
|
||||
results.set(task.file, { name: fileName, size: 0, results: [] });
|
||||
}
|
||||
this._additionalPromises.push(this._runJob(task, results, signal));
|
||||
this._batchTaskCount++;
|
||||
addResult.added++;
|
||||
this._batchTaskCount++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user