Skip to content

feat: add en.toonkotsu - #815

Merged
kkantan merged 2 commits into
Aidoku-Community:mainfrom
PoppingMangoSources:feat/en.toonkotsu
Oct 16, 2026
Merged

kkantan merged 2 commits into
Aidoku-Community:mainfrom
PoppingMangoSources:feat/en.toonkotsu

Conversation

@PoppingMangoSources

Copy link
Copy Markdown
Contributor

Add Toonkotsu as an English source (17+, matches the sites default selections) with browsing, search, filters, series details, chapters, Discover sections, and series/chapter deep links.

  1. Chapter lists preserve volume/chapter numbers and scanlator versions. By default, each group keeps its highest-resolution upload, using file size to break ties. Deduplicate Chapters keeps only the primary releases; Upload Size exposes distinct download sizes and adds them to chapter titles (toggle is default off, can be accessed in source settings). Chapters sort by volume, then chapter number, because official releases can restart numbering within each volume.
  2. Reading uses a WebView guest session because the chapter API requires its session cookie. The reader handles signature refreshes and temporary limits with bounded retries. When the site’s human check cannot complete automatically, Pass Human Check in source settings lets the user open a chapter and complete it manually; Reset Session clears the saved cookies.
  3. Chapter opening returns page URLs and encryption keys; images are decrypted individually through PageImageProcessor using AES-CTR. The signed-reader fallback implements the site’s current HMAC and key-wrapping protocol using the secret distributed in its player bundle.

* Add Toonkotsu browsing, search, discovery sections and series/chapter deep links.
* Fetch genre, theme, content and format tags from the site's facets API for search filters and hidden-tag settings; fixed controls remain in JSON.
* Preserve volume/chapter numbers and scanlator versions, keeping the highest-resolution upload per group by default. Settings can show upload sizes or only primary releases.
* Use a WebView guest session with bounded reader retries and a manual human-check option when required.
* Return page URLs and keys at chapter open, then decrypt each AES-CTR image on demand through PageImageProcessor.
* The signed-reader fallback implements the site's current HMAC/key-wrapping protocol using the secret shipped in its player bundle; protocol changes may require a source update.
* Require Aidoku 0.9.0 and keep source version 1 for the initial upstream submission.
Comment thread sources/en.toonkotsu/src/models.rs Outdated
Comment thread sources/en.toonkotsu/src/home.rs Outdated
Comment thread sources/en.toonkotsu/src/lib.rs
@PoppingMangoSources
PoppingMangoSources force-pushed the feat/en.toonkotsu branch 3 times, most recently from 8c797d0 to fb1bc55 Compare October 16, 2026 12:46
@PoppingMangoSources
PoppingMangoSources force-pushed the feat/en.toonkotsu branch 2 times, most recently from f651cd5 to 49b681d Compare October 16, 2026 13:34
Drop the chapter language, send the types and hidden tags settings with the latest feed request, and enable tag search so a tapped tag is added to the included tags / cleaned some comments in code.
@PoppingMangoSources

PoppingMangoSources commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for the review! 😊 I’ve updated the latest commit to cover all three points: chapters no longer set a language, the latest feed is fixed, tag search is included, and i cleaned up some comments while i was at it. Feel free to let me know if anything else needs tweaking!

@kkantan kkantan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

matching the website, and the mangadex source, it would be nice to have an additional content rating filter for search that can override the defaults in settings, and an optional "Has chapters" toggle. these are just suggestions for the future though.

@kkantan
kkantan merged commit c47b763 into Aidoku-Community:main Oct 16, 2026
3 checks passed
@PoppingMangoSources

Copy link
Copy Markdown
Contributor Author

matching the website, and the mangadex source, it would be nice to have an additional content rating filter for search that can override the defaults in settings, and an optional "Has chapters" toggle. these are just suggestions for the future though.

Noted! I'll add these when I get time, thank you for approving!

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