Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d4a2509
fix(nhentai): migrate to v2
MediocreLegion Mar 29, 2026
c7faf81
bump version
MediocreLegion Mar 29, 2026
c2a3f21
linting
MediocreLegion Mar 29, 2026
59cc097
migrate completely to v2
MediocreLegion Mar 29, 2026
5eab870
add backup for title
MediocreLegion Mar 29, 2026
310569a
issues catched by gemini
MediocreLegion Mar 29, 2026
1909307
fix id in chapters
MediocreLegion Mar 29, 2026
920a34b
backup for nhConfig
MediocreLegion Mar 29, 2026
ddbcf0b
fix thumbnail url
MediocreLegion Mar 29, 2026
c92a7cf
linting, again
MediocreLegion Mar 30, 2026
2e3c832
Fix comparison
MediocreLegion Mar 30, 2026
1807a73
fix pagination
MediocreLegion Mar 30, 2026
e25cb43
bump version
MediocreLegion Mar 30, 2026
71e8896
fix favorites
MediocreLegion Mar 30, 2026
12a671e
linting
MediocreLegion Mar 30, 2026
544325b
randomua refactor
MediocreLegion Mar 30, 2026
2881357
fix null on latest
MediocreLegion Mar 30, 2026
30b36e4
fix null on latest
MediocreLegion Mar 30, 2026
678c5a4
god damnit, again
MediocreLegion Mar 30, 2026
75d233b
add default sort option to settings
MediocreLegion Mar 30, 2026
45c8047
remove trailing `/`s
MediocreLegion Mar 30, 2026
c9a03fe
add support for api key
MediocreLegion Mar 30, 2026
3094bd1
remove dead code and linting
MediocreLegion Mar 30, 2026
aa7accd
unused import
MediocreLegion Mar 30, 2026
438e80a
refresh token
MediocreLegion Mar 30, 2026
e3c38ca
add section comments
MediocreLegion Mar 31, 2026
dc06cf7
class renaming
MediocreLegion Mar 31, 2026
35a777f
bump versionId
MediocreLegion Mar 31, 2026
83cf634
remove versionId requirement
MediocreLegion Mar 31, 2026
aa2b128
readd id
MediocreLegion Mar 31, 2026
9f2d084
fix groups not showing
MediocreLegion Mar 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/all/nhentai/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'NHentai'
extClass = '.NHFactory'
extVersionCode = 54
extVersionCode = 55
isNsfw = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@ package eu.kanade.tachiyomi.extension.all.nhentai

import kotlinx.serialization.Serializable

@Serializable
class NHConfig(val image_servers: List<String>, val thumb_servers: List<String>)

@Serializable
class ResultNHentai(val result: List<SearchHentai> = listOf(), val detail: String = "", val per_page: Long = 0)

@Serializable
class SearchHentai(
var id: Int,
val english_title: String,
val thumbnail: String,
)

@Serializable
class Hentai(
var id: Int,
val images: Images,
val media_id: String,
val pages: List<Image>,
val thumbnail: Image,
val tags: List<Tag>,
val title: Title,
val upload_date: Long,
Expand All @@ -21,21 +34,7 @@ class Title(
)

@Serializable
class Images(
val pages: List<Image>,
)

@Serializable
class Image(
private val t: String,
) {
val extension get() = when (t) {
"w" -> "webp"
"p" -> "png"
"g" -> "gif"
else -> "jpg"
}
}
class Image(val path: String)

@Serializable
class Tag(
Expand Down
Loading