Added new novel strategy
This commit is contained in:
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user