add mangadna source & few fixes (#7994)
* Update MangaLazy.kt * Update hManhwa.kt * mangadna icon * Create MangaDNA.kt * Update MadaraGenerator.kt * Delete src/en/manhwamanga/res directory * replace manhwamanga icon i uploaded manhuamanga icon :V * Update ManhuaManga.kt * Update build.gradle * Update build.gradle
|
@ -2,6 +2,13 @@ package eu.kanade.tachiyomi.extension.en.hmanhwa
|
|||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.annotations.Nsfw
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
@Nsfw
|
||||
class hManhwa : Madara("hManhwa", "https://hmanhwa.com", "en")
|
||||
class hManhwa : Madara(
|
||||
"hManhwa",
|
||||
"https://hmanhwa.com",
|
||||
"en",
|
||||
dateFormat = SimpleDateFormat("dd MMM", Locale.US)
|
||||
)
|
||||
|
|
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 50 KiB |
|
@ -0,0 +1,48 @@
|
|||
package eu.kanade.tachiyomi.extension.en.mangadna
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.source.model.FilterList
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import java.util.Locale
|
||||
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
|
||||
import okhttp3.Request
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class MangaDNA : Madara(
|
||||
"MangaDNA",
|
||||
"https://mangadna.com",
|
||||
"en",
|
||||
dateFormat = SimpleDateFormat("dd MMM yyyy", Locale.US)
|
||||
) {
|
||||
|
||||
override fun popularMangaSelector() = "div.manga-item"
|
||||
override val popularMangaUrlSelector = "div > h3 > a"
|
||||
|
||||
override fun popularMangaRequest(page: Int): Request {
|
||||
return GET("$baseUrl/manga/page/$page?orderby=trending")
|
||||
}
|
||||
|
||||
override fun latestUpdatesRequest(page: Int): Request {
|
||||
return GET("$baseUrl/manga/page/$page?orderby=latest")
|
||||
}
|
||||
|
||||
|
||||
override val pageListParseSelector = "div.read-content img"
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return document.select(pageListParseSelector).mapIndexed { index, element ->
|
||||
Page(
|
||||
index,
|
||||
document.location(),
|
||||
element?.let {
|
||||
it.absUrl(if (it.hasAttr("data-src")) "data-src" else "src")
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
|
@ -16,13 +16,5 @@ class MangaLazy : Madara("MangaLazy", "https://mangalazy.com", "en") {
|
|||
.addInterceptor(RateLimitInterceptor(1, 1, TimeUnit.SECONDS))
|
||||
.build()
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return document.select(pageListParseSelector).mapIndexed { index, element ->
|
||||
Page(
|
||||
index,
|
||||
"",
|
||||
element.select("img.d-block.mx-auto").attr("src")
|
||||
)
|
||||
}
|
||||
}
|
||||
override val pageListParseSelector = ".reading-content div.z_content:nth-child(2) > img:nth-child(n)"
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("Heroz Scanlation", "https://herozscans.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Himera Fansub", "https://himera-fansub.com", "tr"),
|
||||
SingleLang("Hiperdex", "https://hiperdex.com", "en", isNsfw = true, overrideVersionCode = 4),
|
||||
SingleLang("hManhwa", "https://hmanhwa.com", "en", isNsfw = true),
|
||||
SingleLang("hManhwa", "https://hmanhwa.com", "en", isNsfw = true, overrideVersionCode = 1),
|
||||
SingleLang("Hscans", "https://hscans.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Hunter Fansub", "https://hunterfansub.com", "es", overrideVersionCode = 1),
|
||||
SingleLang("Ichirin No Hana Yuri", "https://ichirinnohanayuri.com.br", "pt-BR", overrideVersionCode = 3),
|
||||
|
@ -152,6 +152,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("MangaBox", "https://mangabox.org", "en"),
|
||||
SingleLang("MangaClash", "https://mangaclash.com", "en", overrideVersionCode = 3),
|
||||
SingleLang("MangaCultivator", "https://mangacultivator.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("MangaDNA", "https://mangadna.com", "en"),
|
||||
SingleLang("MangaDods", "https://www.mangadods.com", "en", overrideVersionCode = 2),
|
||||
SingleLang("MangaEffect", "https://mangaeffect.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("MangaFort", "https://mangafort.com", "en"),
|
||||
|
@ -160,7 +161,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("MangaHZ", "https://mangahz.com", "en", isNsfw = true),
|
||||
SingleLang("MangaKitsune", "https://mangakitsune.com", "en", isNsfw = true, overrideVersionCode = 4),
|
||||
SingleLang("MangaKomi", "https://mangakomi.com", "en", overrideVersionCode = 4),
|
||||
SingleLang("MangaLazy", "https://mangalazy.com", "en", isNsfw = true, overrideVersionCode = 1),
|
||||
SingleLang("MangaLazy", "https://mangalazy.com", "en", isNsfw = true, overrideVersionCode = 2),
|
||||
SingleLang("MangaLime", "https://mangalime.com", "en"),
|
||||
SingleLang("MangaLionz", "https://mangalionz.com", "ar"),
|
||||
SingleLang("MangaMe", "https://mangame.org", "en", overrideVersionCode = 1),
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'ManhuaManga.net'
|
||||
pkgNameSuffix = 'en.manhuamanga'
|
||||
extClass = '.ManhuaManga'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ class ManhuaManga : ParsedHttpSource() {
|
|||
}
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> = mutableListOf<Page>().apply {
|
||||
document.select(".chapter_beta_content p img").forEachIndexed { index, element ->
|
||||
document.select("p img").forEachIndexed { index, element ->
|
||||
add(Page(index, "", element.attr("src")))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'ManhwaManga.net'
|
||||
pkgNameSuffix = 'en.manhwamanga'
|
||||
extClass = '.ManhwaManga'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 96 KiB |