Repository navigation
fix(english/webnovel): add chapter dates and stats, fix ongoing status - #2777
Open
blackstargit wants to merge 1 commit into
Open
blackstargit wants to merge 1 commit into
blackstargit wants to merge 1 commit into
Conversation
- Chapter release dates: absolute publish time (ISO) for every chapter,
including locked ones, from the mobile catalog's __NEXT_DATA__, joined to
the desktop catalog on data-cid. Chapter paths are unchanged.
- Volume titles are kept in chapter names ("Volume 0: Auxiliary Volume: ...").
- Status from actionStatus: ongoing novels showed "Unknown Status".
- Genres include the novel's tags.
- rating, ratingCount and display-ready info (views, power stones, golden
tickets, chapters, schedule, updated, translator, editor) from the
lighter mobile book page, with desktop g_data and the old selectors as
fallbacks.
- Mobile extras are best-effort (one delayed retry); a blocked desktop
catalog now throws instead of returning placeholder metadata.
SourceNovel type gains ratingCount and info. Bump to 1.1.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds chapter dates, full volume titles, tags, ratings, and extra stats to Webnovel novels. Uses mobile data first and keeps desktop chapter paths unchanged.
Acknowledgments: Reviews (1) · Last reviewed commit: "fix(english/webnovel): add chapter dates..." · Reviewed by Greptile |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(english/webnovel): add chapter dates and stats, fix ongoing status
Changes (1.0.3 → 1.1.0)
Desktop catalog pages only show relative text ("7 years ago"). The mobile catalog
(
m.webnovel.com/book/<id>/catalog) embedspublishTimein__NEXT_DATA__, joined onli[data-cid].Chapter paths are unchanged, so existing libraries keep their progress.
books. Status now comes from
actionStatus(30 = Ongoing, 50 = Completed).rating,ratingCountand display-readyinfo(views, power stones, golden tickets, chapters,schedule, last updated, translator, editor). These come from the mobile book page (~210 KB, against up to
3.4 MB for the desktop page), with desktop
g_dataand the old HTML selectors as fallbacks.SourceNovelgains optionalratingCountandinfo."No Title Found"/"https:undefined"placeholders that a metadata refresh could write over real data.App-side note (please read)
Today the app marks a chapter as updated whenever its
releaseTimechanges. Withoutlnreader/lnreader#2111, the first library update after this plugin version would put every WebNovel
chapter into the Updates tab, and again whenever the best-effort date fetch fails and later recovers. The
app PR fixes that. Chapters in titled volumes are renamed once either way, so they show up in Updates once.
ratingCount/infoare ignored by the current app; a stats section could be proposed separately.Testing
Working on my WebNovel library. We now see the chapter update dates, tags for the novel, the novel's current status, various stats, etc.
npm run check:plugin -- plugins/english/webnovel.ts: INCONCLUSIVE. Cloudflare challenged my PC("Just a moment…" 403), including for unmodified 1.0.3.
tsc -p tsconfig.production.json, eslint, prettier,npm run build:compile(ES5 output) all pass.Related issues: none found (searched "webnovel").