Skip to content

fix: update Anime Anyway for current site schema - #2570

Open
pdmacinnes wants to merge 4 commits into
lnreader:masterfrom
pdmacinnes:feat/anime-anyway-plugin
Open

pdmacinnes wants to merge 4 commits into
lnreader:masterfrom
pdmacinnes:feat/anime-anyway-plugin

Conversation

@pdmacinnes

@pdmacinnes pdmacinnes commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Support the current volumeProps.vol wrapper while retaining the legacy Anime Anyway payload shape.
  • Build series-prefixed routes such as nibunnoinochi/v1 for volumes that do not use root paths.
  • Use current display titles and release dates so the new volume is searchable and latest sorting remains correct.

Verification

  • ESLint passes for plugins/english/animeAnyway.ts.
  • TypeScript production compilation passes.
  • Live plugin check passes for catalogue, search, Nibunnoinochi novel parsing, and chapter parsing.
  • Existing y3v4 check passes with 16 chapters and latest sorting.

The branch is synced with upstream master so the PR is ready for review.

Reads the site's embedded Next.js page data (__NEXT_DATA__) instead of
scraping rendered HTML: volume/chapter lists and chapter bodies (Sanity
Portable Text) come straight from the JSON the site itself was built
from. Volumes titled "Year N Vol. M" are grouped into one novel per
year since no single page represents an entire year; everything else
is its own standalone novel.
Each Classroom of the Elite volume is published as its own distinct
book, so list them separately instead of merging same-year volumes
into one novel. Drops the grouping/synthetic-path machinery entirely
-- every novel path is now just the site's own real volkeyword.
@greptile-apps

greptile-apps Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 4/5

The PR appears safe to merge, with regression coverage for the new site-data branches recommended.

Findings

  1. P2 New routes lack test coverage ▶

Summary

This PR adapts Anime Anyway to the current volume payload, adds series-prefixed catalogue routes, and uses display titles and homepage release dates.

  • It retains the legacy volume location and fills missing catalogue dates from volume pages.
  • The new schema and route branches need fixture-backed regression coverage.

Reviews (1) · Last reviewed commit: "chore: sync Anime Anyway branch with ups..."

Comment on lines +129 to +131
return volume.series && volume.seriesUsesRootPath === false
? `${volume.series}/${volume.volkeyword}`
: volume.volkeyword;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 New routes lack test coverage
The series-prefixed path depends on seriesUsesRootPath being exactly false, but no fixture-backed test checks that the catalogue produces nibunnoinochi/v1. The new volumeProps.vol parsing branch is untested too. Tests for both payload shapes and routes would catch a site-data mismatch that lint and type-checking cannot.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. This repository has no dedicated unit-test or fixture harness; its documented validation is the live plugin check. I verified the new nibunnoinochi/v1 route and both payload handling paths against the live site successfully. Fixture coverage could be added separately if the project adopts a test framework.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants