Compare commits
2 Commits
55eee8a42e
...
af48a485e8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af48a485e8 | ||
|
|
9600195954 |
@ -168,7 +168,10 @@ class VoeUploader {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const body = await res.text();
|
const body = await res.text();
|
||||||
const data = JSON.parse(body);
|
let data;
|
||||||
|
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
10
main.js
@ -716,7 +716,9 @@ 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}`);
|
||||||
await configStore.appendHistory(summary);
|
try { await configStore.appendHistory(summary); } catch (err) {
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
@ -1056,8 +1058,10 @@ 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 x = Math.round((data.x || 0) * capturedW - contentOffsetX);
|
const rawX = typeof data.x === 'number' && isFinite(data.x) ? data.x : 0;
|
||||||
const y = Math.round((data.y || 0) * capturedH - contentOffsetY);
|
const rawY = typeof data.y === 'number' && isFinite(data.y) ? data.y : 0;
|
||||||
|
const x = Math.round(rawX * capturedW - contentOffsetX);
|
||||||
|
const y = Math.round(rawY * capturedH - contentOffsetY);
|
||||||
|
|
||||||
switch (data.type) {
|
switch (data.type) {
|
||||||
case 'mousemove':
|
case 'mousemove':
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "multi-hoster-uploader",
|
"name": "multi-hoster-uploader",
|
||||||
"version": "2.2.6",
|
"version": "2.2.7",
|
||||||
"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": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user