feat(multi): add Kavita plugin; keep request logs out of find output
Publish Plugins / Publish Plugins (push) Has been cancelled

Kavita plugin reads EPUB series from a self-hosted Kavita server via its
plugin API key, one LNReader chapter per EPUB page named from the TOC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
masi
2026-09-25 12:58:19 -03:00
parent 053aa91b02
commit fbb91a9c84
3 changed files with 231 additions and 1 deletions
+5 -1
View File
@@ -10,6 +10,10 @@ import fs from 'fs';
import os from 'os';
const require = createRequire(import.meta.url);
// The shared fetch helper logs every request with its headers (credentials
// included); keep that out of the output. Results go to stdout explicitly.
const print = (...args) => process.stdout.write(args.join(' ') + '\n');
console.log = () => {};
const ROOT = path.resolve(dirname(fileURLToPath(import.meta.url)), '..');
const TIMEOUT_MS = 20_000;
const CONCURRENCY = 16;
@@ -107,7 +111,7 @@ try {
matches.sort((a, b) => rank(a) - rank(b) || a.source.localeCompare(b.source));
for (const h of matches) {
console.log(
print(
`${rank(h) === 0 ? '*' : ' '} ${h.source.padEnd(28)} ${h.name}\n ${''.padEnd(28)} ${h.url}`,
);
}