From e190a5411f846d46ba62eaabded18f1229850f23 Mon Sep 17 00:00:00 2001 From: qwsdcvghyu89 <61093706+qwsdcvghyu89@users.noreply.github.com> Date: Wed, 17 Jun 2026 08:18:34 +1000 Subject: [PATCH] Updated novels.yaml and loader.ts --- config/novels.yaml | 8 -------- src/config/loader.ts | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/config/novels.yaml b/config/novels.yaml index 7dda110..af9c33e 100644 --- a/config/novels.yaml +++ b/config/novels.yaml @@ -30,14 +30,6 @@ novels: selectors: content: scope: ".epcontent" - stealth: - enabled: true - addons: - - "uBlock0_1.67.0.firefox.signed.xpi" - steps: - - type: waitForElement - selector: "#list-chapter .chapter-archive-grid" - timeoutMs: 15000 download: parallelism: 4 minContentBytes: 10 diff --git a/src/config/loader.ts b/src/config/loader.ts index abb0a82..d2feeea 100644 --- a/src/config/loader.ts +++ b/src/config/loader.ts @@ -29,8 +29,8 @@ export function loadNovelsConfig(): NovelsConfig { if (novel.type !== 'epub' && novel.type !== 'web-scraped') { throw new Error(`Novel "${novel.slug}" has unknown type "${novel.type}"`); } - if (!novel.source?.url && !novel.source?.urls?.length) { - throw new Error(`Novel "${novel.slug}" missing source.url or source.urls`); + if (!novel.source?.url && !novel.source?.urls?.length && !novel.source?.urlTemplate) { + throw new Error(`Novel "${novel.slug}" missing source: provide url (TOC strategy), urls (epub), or urlTemplate (increment strategy)`); } }