feat(multi): add Kavita plugin; keep request logs out of find output
Publish Plugins / Publish Plugins (push) Has been cancelled
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:
@@ -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}`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user