Initial commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
multisrc/overrides/madara/manhuaes/res/web_hi_res_512.png
Normal file
BIN
multisrc/overrides/madara/manhuaes/res/web_hi_res_512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
34
multisrc/overrides/madara/manhuaes/src/ManhuaES.kt
Normal file
34
multisrc/overrides/madara/manhuaes/src/ManhuaES.kt
Normal file
@@ -0,0 +1,34 @@
|
||||
package eu.kanade.tachiyomi.extension.en.manhuaes
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.util.asJsoup
|
||||
import okhttp3.Response
|
||||
|
||||
class ManhuaES : Madara("Manhua ES", "https://manhuaes.com", "en") {
|
||||
|
||||
// The website does not flag the content.
|
||||
override val filterNonMangaItems = false
|
||||
|
||||
override fun chapterListParse(response: Response): List<SChapter> {
|
||||
var chapterList = super.chapterListParse(response)
|
||||
|
||||
// the site adds a ghost chapter for some entries
|
||||
chapterList.firstOrNull()?.let {
|
||||
if (!isReleasedChapter(it)) {
|
||||
chapterList = chapterList.subList(1, chapterList.size)
|
||||
}
|
||||
}
|
||||
|
||||
return chapterList
|
||||
}
|
||||
|
||||
private fun isReleasedChapter(chapter: SChapter): Boolean {
|
||||
val document = client.newCall(
|
||||
GET(chapter.url, headersBuilder().build()),
|
||||
).execute().asJsoup()
|
||||
|
||||
return document.select(pageListParseSelector).isNotEmpty()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user