Compare commits
2 Commits
3a890301a5
...
39b3971bbe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39b3971bbe | ||
|
|
d02d6944d3 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "multi-hoster-uploader",
|
"name": "multi-hoster-uploader",
|
||||||
"version": "2.5.1",
|
"version": "2.5.2",
|
||||||
"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": {
|
||||||
|
|||||||
@ -1346,12 +1346,18 @@ async function startSelectedUpload() {
|
|||||||
const hosters = getSelectedHosters();
|
const hosters = getSelectedHosters();
|
||||||
if (hosters.length === 0) { alert('Bitte mindestens einen Hoster auswählen.'); uploading = false; updateQueueActionButtons(); return; }
|
if (hosters.length === 0) { alert('Bitte mindestens einen Hoster auswählen.'); uploading = false; updateQueueActionButtons(); return; }
|
||||||
|
|
||||||
const jobsToStart = queueJobs.filter((job) => selectedJobIds.has(job.id) && (job.status === 'preview' || job.status === 'queued'));
|
const jobsToStart = queueJobs.filter((job) => selectedJobIds.has(job.id) && ['preview', 'queued', 'error', 'aborted', 'skipped'].includes(job.status));
|
||||||
if (jobsToStart.length === 0) { uploading = false; updateQueueActionButtons(); return; }
|
if (jobsToStart.length === 0) { uploading = false; updateQueueActionButtons(); return; }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
jobsToStart.forEach(j => {
|
jobsToStart.forEach(j => {
|
||||||
if (j.status === 'preview') j.status = 'queued';
|
j.status = 'queued';
|
||||||
|
j.error = null;
|
||||||
|
j.result = null;
|
||||||
|
j.bytesUploaded = 0;
|
||||||
|
j.speedKbs = 0;
|
||||||
|
j.progress = 0;
|
||||||
|
j.uploadId = null;
|
||||||
});
|
});
|
||||||
updateQueueActionButtons();
|
updateQueueActionButtons();
|
||||||
renderQueueTable();
|
renderQueueTable();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user