diff --git a/package.json b/package.json index 8cfe920..2ca4eec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "6.4.152", + "version": "6.4.153", "license": "BUSL-1.1", "private": true, "packageManager": "pnpm@9.15.5", diff --git a/src/lib/modules/extensions/extensions.ts b/src/lib/modules/extensions/extensions.ts index c7646fd..90d78fa 100644 --- a/src/lib/modules/extensions/extensions.ts +++ b/src/lib/modules/extensions/extensions.ts @@ -260,7 +260,7 @@ export const extensions = new class Extensions { for (const [id, worker] of Object.entries(workers)) { const thisExtOpts = extopts[id]! if (!thisExtOpts.enabled) continue - if (!thisExtOpts.options.username || !thisExtOpts.options.password) continue + if (!thisExtOpts.options.username || !thisExtOpts.options.password || !thisExtOpts.options.domain || !thisExtOpts.options.port || !thisExtOpts.options.poolSize) continue if (configs[id]!.type !== 'nzb') continue try { const nzb = await worker.query(hash, thisExtOpts.options) diff --git a/src/lib/modules/torrent/client.ts b/src/lib/modules/torrent/client.ts index 7f19fb0..fa5343d 100644 --- a/src/lib/modules/torrent/client.ts +++ b/src/lib/modules/torrent/client.ts @@ -108,7 +108,7 @@ export const server = new class ServerClient { for (const { nzb, options } of nzbs) { try { - await native.createNZB(hash, nzb, options.domain!, Number(options.port!), options.username!, options.password!, Number(options.poolSize!)) + await native.createNZB(hash, nzb, options.domain!, Number(options.port!), options.username!, options.password!, Number(options.poolSize!) || 5) } catch (e) { toast.error('Failed to add NZB', { description: (e as Error).message }) }