added manual matching on books

This commit is contained in:
2026-01-02 16:54:40 +01:00
parent f5cfa29b64
commit 59fdadd288
18 changed files with 1235 additions and 494 deletions

View File

@@ -88,9 +88,10 @@ export async function getChapters(req: any, reply: FastifyReply) {
const { id } = req.params;
const source = req.query.source || 'anilist';
const provider = req.query.provider;
const extensionBookId = req.query.extensionBookId;
const isExternal = source !== 'anilist';
return await booksService.getChaptersForBook(id, isExternal, provider);
return await booksService.getChaptersForBook(id, isExternal, provider, extensionBookId);
} catch (err) {
console.error(err);
return { chapters: [] };