[Mangabox] Revert Mangakakalot dateformat, add Mangakakalots dateformat (#7589)
This commit is contained in:
parent
4a58e09161
commit
1c0a564c78
|
@ -2,10 +2,8 @@ package eu.kanade.tachiyomi.extension.en.mangakakalot
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.mangabox.MangaBox
|
import eu.kanade.tachiyomi.multisrc.mangabox.MangaBox
|
||||||
import okhttp3.Headers
|
import okhttp3.Headers
|
||||||
import java.text.SimpleDateFormat
|
|
||||||
import java.util.Locale
|
|
||||||
|
|
||||||
class Mangakakalot : MangaBox("Mangakakalot", "https://mangakakalot.com", "en", SimpleDateFormat("MMM dd,yy", Locale.ENGLISH)) {
|
class Mangakakalot : MangaBox("Mangakakalot", "https://mangakakalot.com", "en") {
|
||||||
override fun headersBuilder(): Headers.Builder = super.headersBuilder().set("Referer", "https://manganato.com") // for covers
|
override fun headersBuilder(): Headers.Builder = super.headersBuilder().set("Referer", "https://manganato.com") // for covers
|
||||||
override val simpleQueryPath = "search/story/"
|
override val simpleQueryPath = "search/story/"
|
||||||
override fun searchMangaSelector() = "${super.searchMangaSelector()}, div.list-truyen-item-wrap"
|
override fun searchMangaSelector() = "${super.searchMangaSelector()}, div.list-truyen-item-wrap"
|
||||||
|
|
|
@ -4,8 +4,10 @@ import eu.kanade.tachiyomi.multisrc.mangabox.MangaBox
|
||||||
import eu.kanade.tachiyomi.source.model.MangasPage
|
import eu.kanade.tachiyomi.source.model.MangasPage
|
||||||
import eu.kanade.tachiyomi.util.asJsoup
|
import eu.kanade.tachiyomi.util.asJsoup
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
class Mangakakalots : MangaBox("Mangakakalots (unoriginal)", "https://mangakakalots.com", "en") {
|
class Mangakakalots : MangaBox("Mangakakalots (unoriginal)", "https://mangakakalots.com", "en", SimpleDateFormat("MMM dd,yy", Locale.ENGLISH)) {
|
||||||
override fun searchMangaSelector(): String = "${super.searchMangaSelector()}, div.list-truyen-item-wrap"
|
override fun searchMangaSelector(): String = "${super.searchMangaSelector()}, div.list-truyen-item-wrap"
|
||||||
override fun searchMangaParse(response: Response): MangasPage {
|
override fun searchMangaParse(response: Response): MangasPage {
|
||||||
val document = response.asJsoup()
|
val document = response.asJsoup()
|
||||||
|
|
|
@ -12,10 +12,10 @@ class MangaBoxGenerator : ThemeSourceGenerator {
|
||||||
override val baseVersionCode: Int = 2
|
override val baseVersionCode: Int = 2
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
SingleLang("Mangakakalot", "https://mangakakalot.com", "en", overrideVersionCode = 2),
|
SingleLang("Mangakakalot", "https://mangakakalot.com", "en", overrideVersionCode = 3),
|
||||||
SingleLang("Manganato", "https://manganato.com", "en", overrideVersionCode = 2, pkgName = "manganelo"),
|
SingleLang("Manganato", "https://manganato.com", "en", overrideVersionCode = 2, pkgName = "manganelo"),
|
||||||
SingleLang("Mangabat", "https://m.mangabat.com", "en", overrideVersionCode = 4),
|
SingleLang("Mangabat", "https://m.mangabat.com", "en", overrideVersionCode = 4),
|
||||||
SingleLang("Mangakakalots (unoriginal)", "https://mangakakalots.com", "en", className = "Mangakakalots", pkgName = "mangakakalots"),
|
SingleLang("Mangakakalots (unoriginal)", "https://mangakakalots.com", "en", overrideVersionCode = 1, className = "Mangakakalots", pkgName = "mangakakalots"),
|
||||||
SingleLang("Mangairo", "https://h.mangairo.com", "en", overrideVersionCode = 3),
|
SingleLang("Mangairo", "https://h.mangairo.com", "en", overrideVersionCode = 3),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue