added manual matching on books
This commit is contained in:
@@ -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: [] };
|
||||
|
||||
Reference in New Issue
Block a user