diff --git a/src/en/nineanime/build.gradle b/src/en/nineanime/build.gradle index 962905ef2..d141e7076 100644 --- a/src/en/nineanime/build.gradle +++ b/src/en/nineanime/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'NineAnime' extClass = '.NineAnime' - extVersionCode = 4 + extVersionCode = 5 } apply from: "$rootDir/common.gradle" diff --git a/src/en/nineanime/src/eu/kanade/tachiyomi/extension/en/nineanime/NineAnime.kt b/src/en/nineanime/src/eu/kanade/tachiyomi/extension/en/nineanime/NineAnime.kt index 7d3cd3039..d9ff0a073 100644 --- a/src/en/nineanime/src/eu/kanade/tachiyomi/extension/en/nineanime/NineAnime.kt +++ b/src/en/nineanime/src/eu/kanade/tachiyomi/extension/en/nineanime/NineAnime.kt @@ -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 {