Save chapter to database now use hash to reduce same chapter

This commit is contained in:
2026-02-15 10:43:47 +08:00
parent ddaf11b7e1
commit e355432436
7 changed files with 134 additions and 1 deletions

View File

@@ -4,6 +4,10 @@ import type { QdChapterInfo } from "../types";
export interface Db {
init(): Promise<void>;
/**
* Save chapter info to database.
* @param info Chapter info to save. if id, bookId and hash are matched in the database, skip saving.
*/
saveQdChapter(info: QdChapterInfo): Promise<void>;
close(): void;
}