Repository navigation
Conversation
The description block lost its itemprop/moreless attributes; take the first cont-text block inside .r-desription, skip its inline <style> and keep paragraph breaks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The site's table of contents is newest first, and the novel page only shows the latest chapters, so the app listed chapters in reverse with the newest page first. Map app page N to site page (pages - N + 1), reverse each page, take the page count from the pagination (or pages_count), and load the oldest page in parseNovel. latestChapter is the newest chapter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ranobes.top now answers 403; the same site works at ranobes.net. Treat its 'One moment...' challenge page as a captcha so the app asks to open the WebView instead of showing an empty list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The changes affect chapter reading and English browsing in the two Ranobes sources. Fix chapter paging before merging; newly published chapters can make readers skip a chapter and see another twice. Findings
SummaryUpdates both Ranobes sources to read chapters from oldest to newest.
Reviews (2) · Last reviewed commit: "fix(ranobes): return no results instead ..." · Reviewed by Greptile |
- do not fall back to the novel page's latest chapters when the table of contents cannot be loaded: they would land on page 1 out of order - map app pages with the page count read by parseNovel (or the first parsePage call) instead of updating it on every request, so a novel that grows a page while paging does not repeat or skip pages Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- take the table of contents link from the novel page: its slug can be shorter than the novel slug, and the derived URL answered 404, so these novels failed with 'Unable to load novel' - page the chapter list by chapter index instead of by site page: app page k holds chapters 25(k-1)+1..25k from the first one (a slice of two neighbouring site pages), so page 1 is no longer a 2-chapter remainder - keep the table of contents read by parseNovel while paging Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ranobes.net answers HTTP 404 when a search finds nothing, so every global search without a match failed with 'Could not reach site (404)'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The table of contents is newest first, so every published chapter shifts all its pages. Mixing cached first/last pages with freshly fetched middle pages repeated or skipped a chapter after a release. Each page request now re-reads the newest page, counts the chapters added since, and places freshly fetched chapters by their index from the first chapter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes the Ranobes multisrc template (Ranobes (RU) on ranobes.com and Ranobes on ranobes.net).
latestChapteris the newest chapter. If the table of contents cannot be loaded, the error reaches the app (WebView hint) instead of silently showing the latest chapters as page 1.itemprop="description"/morelessattributes, so summaries were empty. The plugin now takes the firstcont-textblock inside.r-desription, skips its inline<style>and keeps paragraph breaks.ranobes.topnow answers 403; the same site works atranobes.net. Its "One moment..." challenge page is now treated as a captcha, so the app asks to open the WebView instead of showing an empty list.Version 2.0.2 → 2.0.3.
Testing
pages_count(page 1: chapters 691→666, page 28: 14→1), and the catalog and chapter links work on ranobes.net.Related: #1953 (next chapter jumps to the first chapter of the previous page). The chapter list is now in increasing order across pages, which should fix it; not yet verified in the app on the English source.
Checklist
type(scope): description(e.g.feat(<generator>): add new source)This change was written with an AI coding agent (Claude Code) and reviewed and tested by the author.
🤖 Generated with Claude Code