Added new novel strategy

This commit is contained in:
qwsdcvghyu89
2026-06-17 08:11:21 +10:00
parent 5ac2ba6fb5
commit b2e268c6fc
3 changed files with 105 additions and 6 deletions
+4 -2
View File
@@ -46,8 +46,10 @@ export interface NovelDefinition {
slug: string;
type: 'epub' | 'web-scraped';
source: {
url?: string;
urls?: string[];
url?: string; // web-scraped TOC strategy: the table-of-contents page URL
urls?: string[]; // epub: download URL(s)
urlTemplate?: string; // web-scraped increment strategy: template with {n} placeholder, e.g. "https://example.com/chapter-{n}"
startIndex?: number; // increment: chapter number of the first {n} value (default 1)
};
selectors?: {
toc?: TocSelector;