Adult Webtoon: fix pagination (#14998)
This commit is contained in:
parent
0d48b4cf6c
commit
1a872374c3
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue