Mangairo: new search path, remove extra slash (#6204)
This commit is contained in:
parent
5dbfde95d3
commit
941999c9df
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue