Compare commits
2 Commits
6bd49d80b1
...
ead6f97115
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ead6f97115 | ||
|
|
f642122726 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "multi-hoster-uploader",
|
"name": "multi-hoster-uploader",
|
||||||
"version": "2.6.0",
|
"version": "2.6.1",
|
||||||
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -1354,8 +1354,8 @@ function _markSkippedJobs(result) {
|
|||||||
|
|
||||||
async function startSelectedUpload() {
|
async function startSelectedUpload() {
|
||||||
if (uploading) {
|
if (uploading) {
|
||||||
// Batch already running — add selected jobs to the running batch
|
// Batch already running — only add error/aborted/skipped jobs (not already-queued ones)
|
||||||
const retryable = queueJobs.filter(j => selectedJobIds.has(j.id) && ['queued', 'error', 'aborted', 'skipped'].includes(j.status));
|
const retryable = queueJobs.filter(j => selectedJobIds.has(j.id) && ['error', 'aborted', 'skipped'].includes(j.status));
|
||||||
if (retryable.length > 0) {
|
if (retryable.length > 0) {
|
||||||
retryable.forEach(j => {
|
retryable.forEach(j => {
|
||||||
j.status = 'queued'; j.error = null; j.result = null;
|
j.status = 'queued'; j.error = null; j.result = null;
|
||||||
@ -1367,6 +1367,13 @@ async function startSelectedUpload() {
|
|||||||
});
|
});
|
||||||
_markSkippedJobs(result);
|
_markSkippedJobs(result);
|
||||||
persistQueueStateSoon();
|
persistQueueStateSoon();
|
||||||
|
showCopyToast(`${retryable.length} Jobs zum laufenden Upload hinzugefügt`);
|
||||||
|
} else {
|
||||||
|
// All selected jobs are already queued/uploading — just inform user
|
||||||
|
const waiting = queueJobs.filter(j => selectedJobIds.has(j.id) && j.status === 'queued');
|
||||||
|
if (waiting.length > 0) {
|
||||||
|
showCopyToast(`${waiting.length} Jobs warten bereits auf ihren Upload-Slot`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user