diff --git a/src/all/yaoimangaonline/build.gradle b/src/all/yaoimangaonline/build.gradle index e5f8b63f4..7c2f29123 100644 --- a/src/all/yaoimangaonline/build.gradle +++ b/src/all/yaoimangaonline/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Yaoi Manga Online' pkgNameSuffix = 'all.yaoimangaonline' extClass = '.YaoiMangaOnline' - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt b/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt index 904dfe171..7c537d31f 100644 --- a/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt +++ b/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt @@ -18,6 +18,7 @@ class YaoiMangaOnline : ParsedHttpSource() { override val baseUrl = "https://yaoimangaonline.com" + // Popular is actually latest override val supportsLatest = false override fun latestUpdatesSelector() = popularMangaSelector() @@ -34,7 +35,7 @@ class YaoiMangaOnline : ParsedHttpSource() { override fun popularMangaNextPageSelector() = searchMangaNextPageSelector() override fun popularMangaRequest(page: Int) = - searchMangaRequest(page, "", FilterList()) + GET("$baseUrl/page/$page/", headers) override fun popularMangaFromElement(element: Element) = searchMangaFromElement(element) @@ -57,6 +58,7 @@ class YaoiMangaOnline : ParsedHttpSource() { else -> Unit } } + addEncodedPathSegments("page/$page") addQueryParameter("s", query) GET(toString(), headers) }