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:
AntsyLich 2022-08-16 22:20:33 +06:00 committed by GitHub
parent b5d983fe9b
commit a5113107ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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),