From 2a2de9c2aca52fc6d0240328c94407c5e7895473 Mon Sep 17 00:00:00 2001 From: Gourab0002 Date: Sat, 24 Oct 2026 19:06:55 +0530 Subject: [PATCH] fix(english/allnovel): return empty list for search pages past the last novelfull.com responds with HTTP 404 for search pages beyond the last one, so the plugin threw 'Could not reach site (404)' when scrolling search results. Treat a 404 on page > 1 as the end of results, and bump AllNovel's version. Closes #2755 Co-Authored-By: Grok Bot (AI agent) --- plugins/multisrc/readnovelfull/sources.json | 2 +- plugins/multisrc/readnovelfull/template.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/multisrc/readnovelfull/sources.json b/plugins/multisrc/readnovelfull/sources.json index 78712f436..e2fea55e5 100644 --- a/plugins/multisrc/readnovelfull/sources.json +++ b/plugins/multisrc/readnovelfull/sources.json @@ -16,7 +16,7 @@ "latestPage": "latest-release-novel", "searchPage": "search", "chapterListing": "ajax-chapter-option", - "versionIncrements": 1 + "versionIncrements": 2 } }, { diff --git a/plugins/multisrc/readnovelfull/template.ts b/plugins/multisrc/readnovelfull/template.ts index 565effe9c..b049f4887 100644 --- a/plugins/multisrc/readnovelfull/template.ts +++ b/plugins/multisrc/readnovelfull/template.ts @@ -1027,6 +1027,9 @@ export class ReadNovelFullPlugin implements Plugin.PluginBase { const result = await fetchApi(url, fetchOptions); this.lastSearch = Date.now(); + // Some sites (e.g. novelfull.com) return 404 for pages past the last one + if (result.status === 404 && page > 1) return []; + if (!result.ok) { throw new Error( `Could not reach site ('${result.status}') try to open in webview.`,