Add Manhua AZ (#1023)

* Add Manhua AZ, it's apparently spined off from Manhua ES so we set version same as Manhua ES

* Reset Manhua AZ version

Co-authored-by: beerpsi <92439990+beerpiss@users.noreply.github.com>

---------

Co-authored-by: beerpsi <92439990+beerpiss@users.noreply.github.com>
This commit is contained in:
Cuong M. Tran 2024-02-06 12:47:03 +07:00 committed by GitHub
parent b31cd5fa76
commit 85322584b8
7 changed files with 35 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -0,0 +1,34 @@
package eu.kanade.tachiyomi.extension.en.manhuaaz
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 ManhuaAZ : Madara("Manhua AZ", "https://manhuaaz.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()
}
}

View File

@ -280,6 +280,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Mangá Nanquim", "https://mangananquim.com", "pt-BR", className = "MangaNanquim"),
SingleLang("Manhastro", "https://manhastro.com", "pt-BR"),
SingleLang("Manhatic", "https://manhatic.com", "ar", isNsfw = true),
SingleLang("Manhua AZ", "https://manhuaaz.com", "en"),
SingleLang("Manhua ES", "https://manhuaes.com", "en", overrideVersionCode = 6),
SingleLang("Manhua Fenix", "https://visorfenix.com", "es", className = "ManhuaFenix", pkgName = "mangafenix", overrideVersionCode = 4),
SingleLang("Manhua Kiss", "https://manhuakiss.com", "en", isNsfw = true, overrideVersionCode = 1),