Skip to content

Add OneReader#17619

Merged
AwkwardPeak7 merged 6 commits into
keiyoushi:mainfrom
duasmisha-hub:codex/add-onereader
Jul 18, 2026
Merged

Add OneReader#17619
AwkwardPeak7 merged 6 commits into
keiyoushi:mainfrom
duasmisha-hub:codex/add-onereader

Conversation

@duasmisha-hub

@duasmisha-hub duasmisha-hub commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Closes #17390

Adds the OneReader source with full catalog pagination, latest updates, search, filters, manga details, chapters, and reader pages.

Validation performed:

  • :src:pt:onereader:spotlessCheck
  • :src:pt:onereader:assembleDebug
  • :src:pt:onereader:assembleRelease
  • Live API flow, including a title whose tags field is null

Checklist:

  • Updated versionCode value in build.gradle.kts
  • Updated baseVersionCode in build.gradle.kts (if updated multisrc theme code)
  • Referenced all related issues in the PR body (e.g. "Closes #xyz")
  • Set the contentWarning configuration in build.gradle.kts appropriately
  • Have not changed source names
  • Have explicitly kept the id if a source's name or language were changed
  • Have tested the modifications by compiling and running the extension through Android Studio
  • Have removed web_hi_res_512.png when adding a new extension
  • This PR is AI-assisted, I have reviewed the changes manually and confirmed they are not slop

@duasmisha-hub
duasmisha-hub marked this pull request as ready for review July 15, 2026 07:17
@AwkwardPeak7

Copy link
Copy Markdown
Contributor

[ ] Have tested the modifications by compiling and running the extension through Android Studio

please test on mihon.

@duasmisha-hub

duasmisha-hub commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

[ ] Have tested the modifications by compiling and running the extension through Android Studio

please test on mihon.

tested. (working fine)

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.

use icon generator linked in contributing guide, and follow the style convention. i.e square icon with rounded corners, with solid background

import okhttp3.Response

@Source
abstract class OneReader : HttpSource() {

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.

please implement KeiSource instead, you also need to set libVersion in build.gradle.kts to 1.6

.addQueryParameter("capitulo", number)
.build()

url = webUrl.run { "$encodedPath?$encodedQuery" }

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.

save things in memo too

Comment on lines +101 to +114
manga = if (fetchDetails) {
client.get(apiUrl("api", "mangas", manga.url)).parseAs<MangaDto>().toSManga(details = true)
} else {
manga
},
chapters = if (fetchChapters) {
client.get(apiUrl("api", "chapters", manga.url))
.parseAs<Map<String, ChapterDto>>()
.entries
.sortedByDescending { it.key.toDoubleOrNull() ?: Double.NEGATIVE_INFINITY }
.map { it.value.toSChapter(it.key, baseUrl) }
} else {
chapters
},

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.

run both in parallel. (async)

@AwkwardPeak7
AwkwardPeak7 merged commit cb7dda6 into keiyoushi:main Jul 18, 2026
2 checks passed
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.

New extension BR

2 participants