Madara - fix Hiperdex, add 2 tr sources (#2811)
This commit is contained in:
parent
2cb370f061
commit
ce453df6c3
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: Madara (multiple sources)'
|
appName = 'Tachiyomi: Madara (multiple sources)'
|
||||||
pkgNameSuffix = "all.madara"
|
pkgNameSuffix = "all.madara"
|
||||||
extClass = '.MadaraFactory'
|
extClass = '.MadaraFactory'
|
||||||
extVersionCode = 74
|
extVersionCode = 75
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -389,11 +389,13 @@ abstract class Madara(
|
||||||
|
|
||||||
override fun chapterListSelector() = "li.wp-manga-chapter"
|
override fun chapterListSelector() = "li.wp-manga-chapter"
|
||||||
|
|
||||||
|
open val chapterUrlSelector = "a"
|
||||||
|
|
||||||
override fun chapterFromElement(element: Element): SChapter {
|
override fun chapterFromElement(element: Element): SChapter {
|
||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
|
|
||||||
with(element) {
|
with(element) {
|
||||||
select("a").first()?.let { urlElement ->
|
select(chapterUrlSelector).first()?.let { urlElement ->
|
||||||
chapter.url = urlElement.attr("abs:href").let {
|
chapter.url = urlElement.attr("abs:href").let {
|
||||||
it.substringBefore("?style=paged") + if (!it.endsWith("?style=list")) "?style=list" else ""
|
it.substringBefore("?style=paged") + if (!it.endsWith("?style=list")) "?style=list" else ""
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,9 @@ class MadaraFactory : SourceFactory {
|
||||||
YokaiJump(),
|
YokaiJump(),
|
||||||
YoManga(),
|
YoManga(),
|
||||||
ZinManga(),
|
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)
|
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(
|
override fun getGenreList() = listOf(
|
||||||
Genre("Adult", "adult"),
|
Genre("Adult", "adult"),
|
||||||
Genre("Action", "action"),
|
Genre("Action", "action"),
|
||||||
|
@ -567,3 +569,9 @@ class ManyToonClub : Madara("ManyToonClub", "https://manytoon.club", "ko")
|
||||||
class ManhuaUS : Madara("ManhuaUS", "https://manhuaus.com", "en") {
|
class ManhuaUS : Madara("ManhuaUS", "https://manhuaus.com", "en") {
|
||||||
override val pageListParseSelector = "li.blocks-gallery-item"
|
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")
|
||||||
|
|
Loading…
Reference in New Issue