NineAnime: Fix page view (#6298)

* fix page routing

* ?
This commit is contained in:
dngonz 2024-11-27 22:05:47 +01:00 committed by Draff
parent f4c64f4386
commit d4e8394524
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 8 additions and 5 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'NineAnime'
extClass = '.NineAnime'
extVersionCode = 4
extVersionCode = 5
}
apply from: "$rootDir/common.gradle"

View File

@ -33,7 +33,7 @@ class NineAnime : ParsedHttpSource() {
.build()
companion object {
private const val PAGES_URL = "https://www.glanceoflife.com"
private const val PAGES_URL = "https://www.gardenhomefuture.com"
}
// not necessary for normal usage but added in an attempt to fix usage with VPN (see #3476)
@ -160,10 +160,13 @@ class NineAnime : ParsedHttpSource() {
// Pages
override fun pageListRequest(chapter: SChapter): Request {
val id: String = chapter.url.substring(chapter.url.lastIndexOf("/", chapter.url.length - 2))
val id: String = chapter.url
.substring(chapter.url.lastIndexOf("/", chapter.url.length - 2))
.trim('/')
val pageListHeaders = headersBuilder().add("Referer", "$baseUrl/manga/").build()
return GET("$PAGES_URL/c/nineanime$id", pageListHeaders)
val pageListHeaders = headersBuilder().add("Referer", "https://www.technologpython.com/")
return GET("$PAGES_URL/go/jump/?type=nineanime&cid=$id", pageListHeaders.build())
}
override fun pageListParse(document: Document): List<Page> {