Madara - fix Hiperdex, add 2 tr sources (#2811)

This commit is contained in:
Mike 2020-04-24 22:25:15 -04:00 committed by GitHub
parent 2cb370f061
commit ce453df6c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Madara (multiple sources)'
pkgNameSuffix = "all.madara"
extClass = '.MadaraFactory'
extVersionCode = 74
extVersionCode = 75
libVersion = '1.2'
}

View File

@ -389,11 +389,13 @@ abstract class Madara(
override fun chapterListSelector() = "li.wp-manga-chapter"
open val chapterUrlSelector = "a"
override fun chapterFromElement(element: Element): SChapter {
val chapter = SChapter.create()
with(element) {
select("a").first()?.let { urlElement ->
select(chapterUrlSelector).first()?.let { urlElement ->
chapter.url = urlElement.attr("abs:href").let {
it.substringBefore("?style=paged") + if (!it.endsWith("?style=list")) "?style=list" else ""
}

View File

@ -103,7 +103,9 @@ class MadaraFactory : SourceFactory {
YokaiJump(),
YoManga(),
ZinManga(),
ZManga()
ZManga(),
MangaGecesi(),
MangaWT()
)
}
@ -270,7 +272,7 @@ class Milftoon : Madara("Milftoon", "https://milftoon.xxx", "en") {
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/page/$page/?m_orderby=latest", headers)
}
class Hiperdex : Madara("Hiperdex", "https://hiperdex.net", "en") {
class Hiperdex : Madara("Hiperdex", "https://hiperdex.com", "en") {
override fun getGenreList() = listOf(
Genre("Adult", "adult"),
Genre("Action", "action"),
@ -567,3 +569,9 @@ class ManyToonClub : Madara("ManyToonClub", "https://manytoon.club", "ko")
class ManhuaUS : Madara("ManhuaUS", "https://manhuaus.com", "en") {
override val pageListParseSelector = "li.blocks-gallery-item"
}
class MangaGecesi : Madara("Manga Gecesi", "https://mangagecesi.com", "tr") {
override val chapterUrlSelector = "li.wp-manga-chapter div.chapter-thumbnail + a"
}
class MangaWT : Madara("MangaWT", "https://mangawt.com", "tr")