Compare commits

..

No commits in common. "af48a485e8a3c3cfc47c2dadab4063cc005da8f2" and "55eee8a42e24283e635b550eb68f44fbf6c7fb4b" have entirely different histories.

3 changed files with 5 additions and 12 deletions

View File

@ -168,10 +168,7 @@ class VoeUploader {
} }
}); });
const body = await res.text(); const body = await res.text();
let data; const data = JSON.parse(body);
try { data = JSON.parse(body); } catch {
throw new Error(`VOE: Upload-Server Antwort war kein JSON: ${body.slice(0, 200)}`);
}
if (!data || !data.success || !data.server) { if (!data || !data.success || !data.server) {
throw new Error('VOE: Kein Upload-Server erhalten von delivery-node'); throw new Error('VOE: Kein Upload-Server erhalten von delivery-node');

10
main.js
View File

@ -716,9 +716,7 @@ ipcMain.handle('start-upload', (_event, payload) => {
uploadManager.on('batch-done', async (summary) => { uploadManager.on('batch-done', async (summary) => {
debugLog(`batch-done: total=${summary.total} ok=${summary.succeeded} fail=${summary.failed}`); debugLog(`batch-done: total=${summary.total} ok=${summary.succeeded} fail=${summary.failed}`);
try { await configStore.appendHistory(summary); } catch (err) { await configStore.appendHistory(summary);
debugLog(`appendHistory failed: ${err.message}`);
}
if (mainWindow && !mainWindow.isDestroyed()) { if (mainWindow && !mainWindow.isDestroyed()) {
mainWindow.webContents.send('upload-batch-done', summary); mainWindow.webContents.send('upload-batch-done', summary);
} }
@ -1058,10 +1056,8 @@ ipcMain.on('remote:input-event', (_event, data) => {
const capturedH = winBounds.height - dwm; // only bottom has invisible border const capturedH = winBounds.height - dwm; // only bottom has invisible border
const contentOffsetX = contentBounds.x - (winBounds.x + dwm); const contentOffsetX = contentBounds.x - (winBounds.x + dwm);
const contentOffsetY = contentBounds.y - winBounds.y; const contentOffsetY = contentBounds.y - winBounds.y;
const rawX = typeof data.x === 'number' && isFinite(data.x) ? data.x : 0; const x = Math.round((data.x || 0) * capturedW - contentOffsetX);
const rawY = typeof data.y === 'number' && isFinite(data.y) ? data.y : 0; const y = Math.round((data.y || 0) * capturedH - contentOffsetY);
const x = Math.round(rawX * capturedW - contentOffsetX);
const y = Math.round(rawY * capturedH - contentOffsetY);
switch (data.type) { switch (data.type) {
case 'mousemove': case 'mousemove':

View File

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