Update MangaBat (#2405)

This commit is contained in:
happywillow0 2020-03-11 07:56:31 -04:00 committed by GitHub
parent 92d64e95a5
commit 1285139a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions

View File

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

View File

@ -23,8 +23,8 @@ class MangaBoxFactory : SourceFactory {
Mangafree(), Mangafree(),
Mangabat(), Mangabat(),
KonoBasho(), KonoBasho(),
MangaOnl(), MangaOnl()
ChapterManga() //ChapterManga()
) )
} }
@ -63,15 +63,11 @@ class Mangafree : MangaBox("Mangafree", "http://mangafree.online", "en") {
override fun getFilterList() = FilterList() override fun getFilterList() = FilterList()
} }
class Mangabat : MangaBox("Mangabat", "https://mangabat.com", "en") { class Mangabat : MangaBox("Mangabat", "https://mangabat.com", "en", SimpleDateFormat("MMM dd,yy", Locale.ENGLISH)) {
override fun popularMangaSelector() = "div.item" override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/manga-list-all/$page?type=topview", headers)
override fun latestUpdatesSelector() = "div.update_item" override fun popularMangaSelector() = "div.list-story-item"
override fun searchMangaSelector() = "div.update_item" override val latestUrlPath = "manga-list-all/"
override val simpleQueryPath = "search_manga/" override fun searchMangaSelector() = "div.list-story-item"
override val mangaDetailsMainSelector = "div.truyen_info"
override val thumbnailSelector = "img.info_image_manga"
override val descriptionSelector = "div#contentm"
override val pageListSelector = "div.vung_doc img, ${super.pageListSelector}" //some chapters link to Nelo
} }
class KonoBasho : MangaBox("Kono-Basho", "https://kono-basho.com", "en", SimpleDateFormat("MMM dd,yy", Locale.ENGLISH)) { class KonoBasho : MangaBox("Kono-Basho", "https://kono-basho.com", "en", SimpleDateFormat("MMM dd,yy", Locale.ENGLISH)) {