Adult Webtoon: fix pagination (#14998)

This commit is contained in:
Vetle Ledaal 2023-01-17 20:15:58 +01:00 committed by GitHub
parent 0d48b4cf6c
commit 1a872374c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -5,19 +5,21 @@ import eu.kanade.tachiyomi.network.GET
import okhttp3.CacheControl
import okhttp3.Request
class AdultWebtoon : Madara("Adult Webtoon", "https://adultwebtoon.com/", "en") {
class AdultWebtoon : Madara("Adult Webtoon", "https://adultwebtoon.com", "en") {
override val useLoadMoreSearch = false
override fun popularMangaRequest(page: Int): Request {
val pageSuffix = if (page != 1) "page/$page/" else ""
return GET(
"$baseUrl/manga/?m_orderby=trending",
"$baseUrl/manga/$pageSuffix?m_orderby=trending",
formHeaders,
CacheControl.FORCE_NETWORK
)
}
override fun latestUpdatesRequest(page: Int): Request {
val pageSuffix = if (page != 1) "page/$page/" else ""
return GET(
"$baseUrl/manga/?m_orderby=latest",
"$baseUrl/manga/$pageSuffix?m_orderby=latest",
formHeaders,
CacheControl.FORCE_NETWORK
)

View File

@ -27,7 +27,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("365Manga", "https://365manga.com", "en", className = "ThreeSixtyFiveManga", overrideVersionCode = 1),
SingleLang("Adonis Fansub", "https://manga.adonisfansub.com", "tr", overrideVersionCode = 1),
SingleLang("Adult Painful Nightz", "https://adults.painfulnightz.com", "en", isNsfw = true),
SingleLang("Adult Webtoon", "https://adultwebtoon.com/", "en", isNsfw = true),
SingleLang("Adult Webtoon", "https://adultwebtoon.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("AiYuManga", "https://aiyumangascanlation.com", "es"),
SingleLang("Akuma no Tenshi", "https://akumanotenshi.com", "pt-BR", className = "AkumaNoTenshi"),
SingleLang("AkuManga", "https://akumanga.com", "ar", overrideVersionCode = 1),