MangaBox - Kakalot search (#1898)

MangaBox - Kakalot search
This commit is contained in:
Mike 2019-12-22 23:08:50 -05:00 committed by arkon
parent 45ca32d510
commit 288c35f951
2 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaBox (Mangakakalot and others)'
pkgNameSuffix = 'all.mangabox'
extClass = '.MangaBoxFactory'
extVersionCode = 6
extVersionCode = 7
libVersion = '1.2'
}

View File

@ -30,14 +30,16 @@ class MangaBoxFactory : SourceFactory {
//TODO: Alternate search/filters for some sources that don't use query parameters
class Mangakakalot : MangaBox("Mangakakalot", "http://mangakakalot.com", "en")
class Mangakakalot : MangaBox("Mangakakalot", "http://mangakakalot.com", "en") {
override fun searchMangaSelector() = "${super.searchMangaSelector()}, div.list-truyen-item-wrap"
}
class Manganelo : MangaBox("Manganelo", "https://manganelo.com", "en") {
// Nelo's date format is part of the base class
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/genre-all/$page?type=topview", headers)
override fun popularMangaSelector() = "div.content-genres-item"
override val latestUrlPath = "genre-all/"
override fun searchMangaSelector() = "div.search-story-item"
override fun searchMangaSelector() = "div.search-story-item, div.content-genres-item"
override fun getFilterList() = FilterList()
}