mirror of
https://github.com/lifegpc/bookdownload.git
synced 2026-07-08 01:31:31 +08:00
Save chapter to database now use hash to reduce same chapter
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user