Mangairo: new search path, remove extra slash (#6204)

This commit is contained in:
scb261 2021-03-17 22:17:21 +02:00 committed by GitHub
parent 5dbfde95d3
commit 941999c9df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -9,12 +9,12 @@ import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
import java.util.Locale
class Mangairo : MangaBox("Mangairo", "https://h.mangairo.com/", "en", SimpleDateFormat("MMM-dd-yy", Locale.ENGLISH)) {
class Mangairo : MangaBox("Mangairo", "https://h.mangairo.com", "en", SimpleDateFormat("MMM-dd-yy", Locale.ENGLISH)) {
override val popularUrlPath = "manga-list/type-topview/ctg-all/state-all/page-"
override fun popularMangaSelector() = "div.story-item"
override val latestUrlPath = "manga-list/type-latest/ctg-all/state-all/page-"
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
return GET("$baseUrl/$simpleQueryPath${normalizeSearchQuery(query)}?page=$page", headers)
return GET("$baseUrl/list/$simpleQueryPath${normalizeSearchQuery(query)}?page=$page", headers)
}
override fun searchMangaSelector() = "div.story-item"

View File

@ -16,7 +16,7 @@ class MangaBoxGenerator : ThemeSourceGenerator {
SingleLang("Manganelo", "https://manganelo.com", "en"),
SingleLang("Mangabat", "https://m.mangabat.com", "en", overrideVersionCode = 4),
SingleLang("Mangakakalots (unoriginal)", "https://mangakakalots.com", "en", className = "Mangakakalots", pkgName = "mangakakalots"),
SingleLang("Mangairo", "https://h.mangairo.com/", "en", overrideVersionCode = 2),
SingleLang("Mangairo", "https://h.mangairo.com", "en", overrideVersionCode = 3),
)
companion object {