diff --git a/build-plugin.sh b/build-plugin.sh index 5cafd8a..cea9b22 100755 --- a/build-plugin.sh +++ b/build-plugin.sh @@ -2,7 +2,7 @@ set -eu PLUGIN="u-navigator" -VERSION="2026.07.04.r002" +VERSION="2026.07.04.r003" PKG_DIR="packages" WORK_DIR=".plugin-build" PKG_NAME="${PLUGIN}-${VERSION}.tgz" diff --git a/packages/u-navigator-2026.07.04.r002.tgz b/packages/u-navigator-2026.07.04.r002.tgz deleted file mode 100644 index b23e185..0000000 Binary files a/packages/u-navigator-2026.07.04.r002.tgz and /dev/null differ diff --git a/packages/u-navigator-2026.07.04.r003.tgz b/packages/u-navigator-2026.07.04.r003.tgz new file mode 100644 index 0000000..bef1aac Binary files /dev/null and b/packages/u-navigator-2026.07.04.r003.tgz differ diff --git a/server/public/app.js b/server/public/app.js index 4720105..7e82777 100644 --- a/server/public/app.js +++ b/server/public/app.js @@ -952,6 +952,21 @@ async function uploadFileList(win, files, targetPath) { recordDebug('upload.file.done', { path: item.path, index: index + 1, total: uploadItems.length, overwrite: false }); } catch (error) { if (error.status !== 409) { + if (isLocalFileReadError(error)) { + updateUploadTransfer(transfer, { + skippedFiles: transfer.skippedFiles + 1, + skippedBytes: transfer.skippedBytes + Number(item.file.size || 0), + currentFile: item.path, + progress: uploadProgressPercent(transfer) + }, true); + recordDebug('upload.file.unreadable', { + path: item.path, + index: index + 1, + total: uploadItems.length, + error: serializeError(error) + }); + continue; + } updateUploadTransfer(transfer, { status: 'failed', message: error.message || 'Upload fehlgeschlagen', @@ -1108,6 +1123,12 @@ function uploadProgressPercent(transfer) { return 0; } +function isLocalFileReadError(error) { + return error?.name === 'NotReadableError' + || error?.name === 'NotFoundError' + || error?.name === 'SecurityError'; +} + function arrayBufferToBase64(buffer) { const bytes = new Uint8Array(buffer); let binary = ''; diff --git a/u-navigator.plg b/u-navigator.plg index 088bd1a..87c1ad8 100644 --- a/u-navigator.plg +++ b/u-navigator.plg @@ -1,7 +1,7 @@ - + @@ -24,7 +24,7 @@ https://git.casaderoll.de/michael/Unraid-Navigator/raw/branch/main/packages/&package; -9ccf5df46e9ceb52d5d90bd566f279fe +ee518cf2d919b9f7abfdf363109e3bff