MangaFlix: fix chapter title showing up empty (#12721)

This commit is contained in:
Vetle Ledaal 2022-07-25 19:06:22 +00:00 committed by GitHub
parent 972c1e2f37
commit 6006c986d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -20,9 +20,9 @@ class MangaFlix : Madara(
val chapter = super.chapterFromElement(element)
with(element) {
select(chapterUrlSelector).first()?.let { urlElement ->
// use .ownText() instead of .text()
chapter.name = urlElement.ownText()
selectFirst(chapterUrlSelector)?.let { urlElement ->
// Using .text() on the <a> tag is too broad
chapter.name = urlElement.selectFirst("> p")!!.text()
}
}

View File

@ -517,7 +517,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("عرب تونز", "https://arabtoons.net", "ar", isNsfw = true, className = "ArabToons"),
SingleLang("مانجا العاشق", "https://3asq.org", "ar", className = "Manga3asq", overrideVersionCode = 2),
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://mangalink.io", "ar", className = "MangaLinkio", overrideVersionCode = 2),
SingleLang("شبكة كونان العربية", "https://manga.detectiveconanar.com", "ar", className = "DetectiveConanAr", overrideVersionCode = 2),