mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-05-19 03:11:46 +00:00
fix: actually require all NNTP properties
This commit is contained in:
parent
fcb4139d68
commit
a79b993fbd
3 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ui",
|
"name": "ui",
|
||||||
"version": "6.4.152",
|
"version": "6.4.153",
|
||||||
"license": "BUSL-1.1",
|
"license": "BUSL-1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@9.15.5",
|
"packageManager": "pnpm@9.15.5",
|
||||||
|
|
|
||||||
|
|
@ -260,7 +260,7 @@ export const extensions = new class Extensions {
|
||||||
for (const [id, worker] of Object.entries(workers)) {
|
for (const [id, worker] of Object.entries(workers)) {
|
||||||
const thisExtOpts = extopts[id]!
|
const thisExtOpts = extopts[id]!
|
||||||
if (!thisExtOpts.enabled) continue
|
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
|
if (configs[id]!.type !== 'nzb') continue
|
||||||
try {
|
try {
|
||||||
const nzb = await worker.query(hash, thisExtOpts.options)
|
const nzb = await worker.query(hash, thisExtOpts.options)
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ export const server = new class ServerClient {
|
||||||
|
|
||||||
for (const { nzb, options } of nzbs) {
|
for (const { nzb, options } of nzbs) {
|
||||||
try {
|
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) {
|
} catch (e) {
|
||||||
toast.error('Failed to add NZB', { description: (e as Error).message })
|
toast.error('Failed to add NZB', { description: (e as Error).message })
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue