feat: add configurable parallel video uploads

Allow up to four video upload connections while keeping one connection as the default. Preserve existing messaging interfaces and add configuration controls, reliable failure handling, and upload diagnostics.

Closes #569
This commit is contained in:
DrSmoothl committed 2026-10-24 22:58:46 +08:00
1 parent 3bd74acb60
commit 5c9328206f
18 files changed
+1182 -217

No files matched your search

+4
View File
@@ -527,6 +527,10 @@ function prepareGlobalSettingsJson(
const normalized = normalizeGlobalSettings(raw);
const canonical: Record<string, unknown> = { rkey: normalized.rkey };
if (isPlainObject(raw) && Object.prototype.hasOwnProperty.call(raw, 'videoUploadConcurrency')) {
canonical.videoUploadConcurrency = normalized.videoUploadConcurrency;
}
// Missing is the existing one-shot migration sentinel: startup scans legacy
// onebot*.json only until snowluma.json first carries this key.
if (isPlainObject(raw) && Object.prototype.hasOwnProperty.call(raw, 'musicSignUrl')) {