Compare commits

..

No commits in common. "ede5a192ea9efa09ba78f7c4750539de00c26089" and "8c2a83eceeeedbf3adbc8f4590acab1dc1fa9530" have entirely different histories.

2 changed files with 2 additions and 9 deletions

View File

@ -177,8 +177,7 @@ class UploadManager extends EventEmitter {
const jobId = task.jobId || uploadId;
const fileName = path.basename(task.file);
let fileSize = 0;
let fileNotFound = false;
try { fileSize = fs.statSync(task.file).size; } catch { fileNotFound = true; }
try { fileSize = fs.statSync(task.file).size; } catch {}
const maxAttempts = Math.max(1, (settings.retries || 0) + 1);
const jobAbortController = new AbortController();
@ -224,12 +223,6 @@ class UploadManager extends EventEmitter {
};
try {
if (fileNotFound) {
const error = 'Datei nicht gefunden';
emitFinalStatus('skipped', { error, attempt: 0 });
recordFinalResult('error', { error });
return;
}
if (fileSize <= 0) {
const error = 'Datei ist leer (0 Bytes)';
emitFinalStatus('skipped', { error, attempt: 0 });

View File

@ -1,6 +1,6 @@
{
"name": "multi-hoster-uploader",
"version": "2.3.7",
"version": "2.3.6",
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
"main": "main.js",
"scripts": {