Skip to content

fix(english/scribblehub): restore search, status, dates and chapter list - #2826

Merged
rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
henriquetatagiba:fix/scribblehub
Nov 10, 2026
Merged

rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
henriquetatagiba:fix/scribblehub

Conversation

@henriquetatagiba

@henriquetatagiba henriquetatagiba commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Scribble Hub was close to unusable (#2823): browse often showed "No results", novels opened without chapters or failed with "Unable to load novel", and search returned nothing (#2344). This PR fixes the parts the plugin controls and bumps it from 1.0.2 to 1.1.0.

  • Search: the old /?s=…&post_type=fictionposts URL now returns HTTP 410. Search goes through the series finder (series-finder/?sf=1&sh=<term>&pg=<page>), which is what the site's own search box does. It passes the page number, so results no longer repeat on scroll (the reason Update scribblehub plugin to use new seriesfinder url #2372 was closed).
  • Popular: default sort is now pageviews. ratings sorts by average rating, so novels with one 5-star vote and 1–2 chapters filled the list.
  • Filters: the "Last Updated" sort value is lastchpdate (was lastchdate, which the site ignores).
  • Status: read from the status row. The old selector picked up the Content Warning row, so every novel with warnings showed as Completed. Hiatus is now mapped too.
  • Release dates: the old parser discarded its dayjs().subtract() results, so "N ago" dates became "now" and absolute dates became null. The new parser reads the full date in the title attribute (e.g. Nov 1, 2026 06:07 PM) and handles relative dates.
  • Chapter numbers: set from each entry's order attribute. Chapters are sorted by it.
  • Chapter list: built from the novel page's table of contents.

Closes #2344
Refs #2823, #2475

Testing

  • Checked every selector and request against the live site in Chrome: series finder parameters, genre and content-warning IDs, search, latest, novel page, table of contents and chapter page.
  • On device: Samsung Galaxy S25 (SM-S931B), LNReader 2.1.4.
    • Popular and latest load.
    • Novels open with the novel page's chapter list.
    • Chapters open and read normally.
    • A temporary debug build logged the responses in the table above.
    • Search and filters were verified against the live site in Chrome, not on the device. The final build (only the novel page's chapter list) was not re-tested on the device.
  • npm run check:plugin -- plugins/english/scribblehub.ts is INCONCLUSIVE: Cloudflare returns 403 to Node.
  • eslint, prettier --check, tsc and npm run build:compile pass for the plugin.

This PR was written with the help of an AI agent.

Checklist

  • Update version code if an existing plugin was modified
  • Test changes in Plugin Playground or the app
  • Reference related issues in the PR body (e.g. Closes #xyz)
  • Commit messages follow type(scope): description (e.g. feat(<generator>): add new source)

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge within its stated newest-15-chapters limitation.

Summary

Updates scribblehub.ts to restore search and improve novel details.

  • Scribble Hub search and browse use the series finder and its supported sort values.
  • Novel pages show the story status from the status row.
  • Novel pages provide an ordered list of chapters with release dates.

Acknowledged limitations from henriquetatagiba:

  • Only the newest 15 chapters are listed because Cloudflare blocks full-list requests from the app.
  • A stale saved User-Agent can still block browsing; users must update it in app settings.
  • Novels previously cached without chapters can still fail; users must clear cached novels.

Reviews (1) · Last reviewed commit: "chore(english/scribblehub): set version ..." · Reviewed by Greptile

@Max762x39

Copy link
Copy Markdown

Eagerly waiting for it to be included in a version. Impossible to update, browse and load new novels from this source otherwise.
Thanks!

@D3ICIDE

D3ICIDE commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Have you verified that this works? I couldn't make your version work on my device and btw how did you solve the 403.

- search through the series finder with paging; the old search URL returns 410
- default popular sort to pageviews and fix the Last Updated sort value
- read status from the status row, including Hiatus
- parse relative and absolute release dates and set chapter numbers
- load the full chapter list from the releases endpoint, falling back to the
  latest chapters on the novel page if that request fails
@henriquetatagiba

henriquetatagiba commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

@D3ICIDE scribblehub's cloudflare rules are pretty strict, I had to update the User Agent on my device to get it working; but the chapters list were fallback-ing to the last 15 (the ones that show in the novel's index page).

Motived to get this working, I've create this PR lnreader/lnreader#2118 to improve the cloudflare bypass

@D3ICIDE

D3ICIDE commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Have you tested that your plugin works in your device? Also UA shouldn't have fixed anything because when I last checked scribblehub responded even without proper UA(through curl). It worked just with valid cookie(with curl not with the app or playground). The Problem that I had identified was that for some reason app wasn't saving the cf clearance cookie. How did you solve that?

@MonomoySama

Copy link
Copy Markdown

Is this not ready for merge yet?

@henriquetatagiba

Copy link
Copy Markdown
Contributor Author

@D3ICIDE Yes, I tested it on a Samsung Galaxy S25 with LNReader 2.1.4. Popular, latest, novel details and chapter reader all work.

The chapter list gives me mixed results. The plugin loads the novel page, then asks for the full chapter list through the site's pagination request (wp-admin/admin-ajax.php, wi_getreleases_pagination):

  • Sometimes that request goes through and I get every chapter.
  • Other times it gets the Cloudflare "Just a moment..." challenge (403). The plugin then falls back to the chapters on the novel page, so I only see the 15 newest.

The plugin doesn't do anything to get past the challenge. It could be related to the cf_clearance cookie problem you found.

What helped me in general was updating the UA and then opening the novel in the WebView to clear the Cloudflare challenge. I'm currently using:

Mozilla/5.0 (Linux; Android 17) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.8078.81 Mobile Safari/537.36

@rajarsheechatterjee
rajarsheechatterjee merged commit 09bdf8d into lnreader:master Nov 10, 2026
@MonomoySama

Copy link
Copy Markdown

i updated the plugin but its still showing "no result found"... not working for me only?

@joseph-marques

Copy link
Copy Markdown

i updated the plugin but its still showing "no result found"... not working for me only?

Same here

@Max762x39

Copy link
Copy Markdown

i updated the plugin but its still showing "no result found"... not working for me only?

Don't forget to go and manually defeat the big bad cloud flare before updating scribblehub novels. Works for me!

@MonomoySama

Copy link
Copy Markdown

i updated the plugin but its still showing "no result found"... not working for me only?

Don't forget to go and manually defeat the big bad cloud flare before updating scribblehub novels. Works for me!

Well, that's common stuff. In my case, there's no CF block in webview, the site works fully fine, i even opened a novel chapter in webview. But in plugin, it's still no result. It was the same before too, i don't see any change brought by this update

@joseph-marques

Copy link
Copy Markdown

Well, that's common stuff. In my case, there's no CF block in webview, the site works fully fine, i even opened a novel chapter in webview. But in plugin, it's still no result. It was the same before too, i don't see any change brought by this update

I had the exact same issue, but I just got it working by opening Firefox and stealing the UA from there. (I previously tried the one posted by @henriquetatagiba, that didn't fix it for me.)

@MonomoySama

Copy link
Copy Markdown

Well, that's common stuff. In my case, there's no CF block in webview, the site works fully fine, i even opened a novel chapter in webview. But in plugin, it's still no result. It was the same before too, i don't see any change brought by this update

I had the exact same issue, but I just got it working by opening Firefox and stealing the UA from there. (I previously tried the one posted by @henriquetatagiba, that didn't fix it for me.)

So you just went to firefox, searched "what is my user agent" and copy pasted the text into lnreader? That's what you did? If yes, then I've already done it tho

@henriquetatagiba

Copy link
Copy Markdown
Contributor Author

@MonomoySama @joseph-marques other than updating the UA, did you clear the cached novels?

Settings > Advanced

  • Clear cached novels
  • Clear cookies (maybe this can help, but it will clear the cache for all plugins)

@joseph-marques

Copy link
Copy Markdown

@MonomoySama yep, that's exactly what I did

@henriquetatagiba I did both of those after trying your user agent, which didn't seem to make difference. But that may have been a prerequisite for making my other UA work.

@MonomoySama

Copy link
Copy Markdown

@MonomoySama @joseph-marques other than updating the UA, did you clear the cached novels?

Settings > Advanced

  • Clear cached novels
  • Clear cookies (maybe this can help, but it will clear the cache for all plugins)

Ok so i managed to use it, i connected to vpn, united kingdom, and the webview CF verification finally appeared, i just did it and plugin started working, all novel updated and downloaded. But when i turned off vpn and tried again, it's same "no result found" while no CF verification appearing in Webview

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ScribbleHub : No result error

6 participants