mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-01-12 02:11:28 +00:00
fix: dont query NNTP without pass
This commit is contained in:
parent
f2b6f12fcb
commit
fcb4139d68
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ui",
|
||||
"version": "6.4.151",
|
||||
"version": "6.4.152",
|
||||
"license": "BUSL-1.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.15.5",
|
||||
|
|
|
|||
|
|
@ -260,6 +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 (configs[id]!.type !== 'nzb') continue
|
||||
try {
|
||||
const nzb = await worker.query(hash, thisExtOpts.options)
|
||||
|
|
|
|||
Loading…
Reference in a new issue