Compare commits

..

2 Commits

Author SHA1 Message Date
Administrator
b4c786cf04 release: v1.8.4 2026-03-11 23:35:45 +01:00
Administrator
92b4a35425 fix: health check only checks hosters with jobs in queue
Previously checked all selected hosters, blocking uploads when an
unrelated hoster (e.g. vidmoly) was down. Now only checks hosters
that actually have jobs to start.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 23:35:23 +01:00
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "multi-hoster-uploader", "name": "multi-hoster-uploader",
"version": "1.8.3", "version": "1.8.4",
"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": {

View File

@ -1001,9 +1001,10 @@ async function startUpload() {
const jobsToStart = queueJobs.filter((job) => job.status === 'preview' || job.status === 'queued'); const jobsToStart = queueJobs.filter((job) => job.status === 'preview' || job.status === 'queued');
if (jobsToStart.length === 0) return; if (jobsToStart.length === 0) return;
// Auto health check // Auto health check — only check hosters that have jobs to start
if (autoHealthCheckEnabled) { if (autoHealthCheckEnabled) {
const checkHosters = hosters.filter(name => name === 'doodstream.com' || name === 'vidmoly.me' || name === 'voe.sx' || name === 'byse.sx'); const jobHosters = new Set(jobsToStart.map(j => j.hoster));
const checkHosters = [...jobHosters].filter(name => name === 'doodstream.com' || name === 'vidmoly.me' || name === 'voe.sx' || name === 'byse.sx');
if (checkHosters.length > 0) { if (checkHosters.length > 0) {
healthCheckRunning = true; healthCheckRunning = true;
try { try {
@ -1059,9 +1060,10 @@ async function startSelectedUpload() {
const jobsToStart = queueJobs.filter((job) => selectedJobIds.has(job.id) && (job.status === 'preview' || job.status === 'queued')); const jobsToStart = queueJobs.filter((job) => selectedJobIds.has(job.id) && (job.status === 'preview' || job.status === 'queued'));
if (jobsToStart.length === 0) return; if (jobsToStart.length === 0) return;
// Auto health check // Auto health check — only check hosters that have jobs to start
if (autoHealthCheckEnabled) { if (autoHealthCheckEnabled) {
const checkHosters = hosters.filter(name => name === 'doodstream.com' || name === 'vidmoly.me' || name === 'voe.sx' || name === 'byse.sx'); const jobHosters = new Set(jobsToStart.map(j => j.hoster));
const checkHosters = [...jobHosters].filter(name => name === 'doodstream.com' || name === 'vidmoly.me' || name === 'voe.sx' || name === 'byse.sx');
if (checkHosters.length > 0) { if (checkHosters.length > 0) {
healthCheckRunning = true; healthCheckRunning = true;
try { try {