This commit is contained in:
racoon-rac 2023-01-04 01:15:28 +09:00 committed by GitHub
parent 4d3dccfe10
commit a457e76b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Photos18'
pkgNameSuffix = 'all.photos18'
extClass = '.Photos18'
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -13,6 +13,7 @@ import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.HttpSource
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Headers
import okhttp3.HttpUrl
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.Request
@ -35,6 +36,10 @@ class Photos18 : HttpSource(), ConfigurableSource {
override val client = network.client.newBuilder().followRedirects(false).build()
override fun headersBuilder() = Headers.Builder().apply {
add("Referer", baseUrl)
}
override fun popularMangaRequest(page: Int) = GET("$baseUrlWithLang/sort/views?page=$page", headers)
override fun popularMangaParse(response: Response): MangasPage {