MangaFlix: fix chapter title showing up empty (#12721)
This commit is contained in:
parent
972c1e2f37
commit
6006c986d9
|
@ -20,9 +20,9 @@ class MangaFlix : Madara(
|
||||||
val chapter = super.chapterFromElement(element)
|
val chapter = super.chapterFromElement(element)
|
||||||
|
|
||||||
with(element) {
|
with(element) {
|
||||||
select(chapterUrlSelector).first()?.let { urlElement ->
|
selectFirst(chapterUrlSelector)?.let { urlElement ->
|
||||||
// use .ownText() instead of .text()
|
// Using .text() on the <a> tag is too broad
|
||||||
chapter.name = urlElement.ownText()
|
chapter.name = urlElement.selectFirst("> p")!!.text()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -517,7 +517,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("عرب تونز", "https://arabtoons.net", "ar", isNsfw = true, className = "ArabToons"),
|
SingleLang("عرب تونز", "https://arabtoons.net", "ar", isNsfw = true, className = "ArabToons"),
|
||||||
SingleLang("مانجا العاشق", "https://3asq.org", "ar", className = "Manga3asq", overrideVersionCode = 2),
|
SingleLang("مانجا العاشق", "https://3asq.org", "ar", className = "Manga3asq", overrideVersionCode = 2),
|
||||||
SingleLang("مانجا عرب تيم Manga Arab Team", "https://mangaarbteam.com", "ar", className = "MangaArabTeam", overrideVersionCode = 1),
|
SingleLang("مانجا عرب تيم Manga Arab Team", "https://mangaarbteam.com", "ar", className = "MangaArabTeam", overrideVersionCode = 1),
|
||||||
SingleLang("مانجا فليكس", "https://www.manga-flix.com", "ar", isNsfw = false, className = "MangaFlix"),
|
SingleLang("مانجا فليكس", "https://www.manga-flix.com", "ar", isNsfw = false, className = "MangaFlix", overrideVersionCode = 1),
|
||||||
SingleLang("مانجا ليك", "https://mangalek.com", "ar", className = "Mangalek", overrideVersionCode = 1),
|
SingleLang("مانجا ليك", "https://mangalek.com", "ar", className = "Mangalek", overrideVersionCode = 1),
|
||||||
SingleLang("مانجا لينك", "https://mangalink.io", "ar", className = "MangaLinkio", overrideVersionCode = 2),
|
SingleLang("مانجا لينك", "https://mangalink.io", "ar", className = "MangaLinkio", overrideVersionCode = 2),
|
||||||
SingleLang("شبكة كونان العربية", "https://manga.detectiveconanar.com", "ar", className = "DetectiveConanAr", overrideVersionCode = 2),
|
SingleLang("شبكة كونان العربية", "https://manga.detectiveconanar.com", "ar", className = "DetectiveConanAr", overrideVersionCode = 2),
|
||||||
|
|
Loading…
Reference in New Issue