Compare commits

..

No commits in common. "f38b3d6a5382a4eba4dae2ab862e9ae96a74749e" and "ae318d2c6253c56cba42b038830f850a676de790" have entirely different histories.

3 changed files with 13 additions and 21 deletions

View File

@ -75,7 +75,7 @@ class UploadManager extends EventEmitter {
const settings = { ...DEFAULT_SETTINGS, ...(this.hosterSettings[hoster] || {}) };
const globalLimit = this._getGlobalParallelLimit();
if (this.globalSettings.scaleParallelUploads && globalLimit > 0) {
settings.parallelCount = Math.min(settings.parallelCount || 1, globalLimit);
settings.parallelCount = Math.max(settings.parallelCount || 1, globalLimit);
}
return settings;
}

View File

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

View File

@ -130,18 +130,6 @@ async function init() {
addPathsToQueue(paths);
});
// Remote client count updates (registered once, not per renderSettings call)
window.api.onRemoteClientCount(() => {
const el = document.getElementById('remoteConnectionStatus');
if (el && el.style.color === 'rgb(16, 185, 129)') {
window.api.remoteStatus().then(status => {
if (status.running) {
el.textContent = `Aktiv auf Port ${status.port}${status.clientCount} Client(s) verbunden`;
}
}).catch(() => {});
}
});
window.api.debugLog('init complete, all listeners registered');
// Restore always-on-top state
@ -2207,7 +2195,17 @@ function renderSettings() {
}
}).catch(() => {});
// Live client count updates (listener registered once in init, not here)
// Live client count updates
window.api.onRemoteClientCount((count) => {
const el = document.getElementById('remoteConnectionStatus');
if (el && el.style.color === 'rgb(16, 185, 129)') {
window.api.remoteStatus().then(status => {
if (status.running) {
el.textContent = `Aktiv auf Port ${status.port}${status.clientCount} Client(s) verbunden`;
}
}).catch(() => {});
}
});
// --- Backup Panel ---
const backupPanel = document.createElement('div');
@ -3069,12 +3067,6 @@ function sortHistoryRows(rows) {
// Flush pending queue state on window close (sync IPC — blocks until save completes)
window.addEventListener('beforeunload', () => {
// Flush pending settings save if user changed settings right before closing
if (settingsSaveTimer) {
clearTimeout(settingsSaveTimer);
settingsSaveTimer = null;
try { saveSettings(); } catch {}
}
clearTimeout(queuePersistTimer);
queuePersistTimer = null;
const globalSettings = {