MangaThemesia: Tweak chapter list selector (#13028)
Also add a little null-safety in `mangaDetailParse()` ~~You saw nothing~~ Fixes #13020 Fixes #13022 Fixes #13023
This commit is contained in:
parent
b5d983fe9b
commit
a5113107ff
|
@ -156,7 +156,7 @@ abstract class MangaThemesia(
|
|||
open val altNamePrefix = "Alternative Name: "
|
||||
|
||||
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
||||
document.selectFirst(seriesDetailsSelector).let { seriesDetails ->
|
||||
document.selectFirst(seriesDetailsSelector)?.let { seriesDetails ->
|
||||
title = seriesDetails.selectFirst(seriesTitleSelector)?.text().orEmpty()
|
||||
artist = seriesDetails.selectFirst(seriesArtistSelector)?.ownText().removeEmptyPlaceholder()
|
||||
author = seriesDetails.selectFirst(seriesAuthorSelector)?.ownText().removeEmptyPlaceholder()
|
||||
|
@ -194,7 +194,7 @@ abstract class MangaThemesia(
|
|||
}
|
||||
|
||||
// Chapter list
|
||||
override fun chapterListSelector() = "div.bxcl li, div.cl li, #chapterlist li .eph-num, li:has(div.chbox):has(div.eph-num)"
|
||||
override fun chapterListSelector() = "div.bxcl li, div.cl li, #chapterlist li, ul li:has(div.chbox):has(div.eph-num)"
|
||||
|
||||
override fun chapterListParse(response: Response): List<SChapter> {
|
||||
val document = response.asJsoup()
|
||||
|
|
|
@ -10,7 +10,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
|||
|
||||
override val themeClass = "MangaThemesia"
|
||||
|
||||
override val baseVersionCode: Int = 16
|
||||
override val baseVersionCode: Int = 17
|
||||
|
||||
override val sources = listOf(
|
||||
MultiLang("Asura Scans", "https://www.asurascans.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 16),
|
||||
|
|
Loading…
Reference in New Issue