Various improvements & Epub support

This commit is contained in:
Stefan Hardegger
2025-08-08 14:09:14 +02:00
parent 090b858a54
commit 379c8c170f
37 changed files with 4069 additions and 298 deletions

View File

@@ -235,6 +235,16 @@
"requiresJavaScript": true
}
}
},
"wanderinginn.com": {
"story": {
"title": "h1.entry-title",
"author": "pirateaba",
"content": ".entry-content",
"summary": "meta[property='og:description']",
"summaryAttribute": "content"
}
}
},
@@ -329,6 +339,10 @@
"fanfiction.net": {
"note": "Older site with simpler HTML structure",
"warning": "Known to block IPs for aggressive scraping"
},
"wanderinginn.com": {
"note": "WordPress-based site with consistent structure",
"author": "All stories by pirateaba - uses text pattern matching for content extraction"
}
}
}

View File

@@ -1,6 +1,6 @@
export interface SiteConfig {
story: StorySelectors;
authorPage: AuthorPageSelectors;
authorPage?: AuthorPageSelectors;
}
export interface StorySelectors {
@@ -13,6 +13,7 @@ export interface StorySelectors {
multiPage?: MultiPageConfig;
titleFallback?: string;
titleFallbackAttribute?: string;
contentFallback?: string;
titleTransform?: string;
summaryAttribute?: string;
coverImageAttribute?: string;