Manhastro - Fix nullpointer when manga title is set (#1442)

Fix nullpointer when manga title is set
This commit is contained in:
Chopper 2024-02-21 13:52:30 -03:00 committed by Draff
parent e5d3eeb7cc
commit 2e25acbc36
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.Manhastro'
themePkg = 'madara'
baseUrl = 'https://manhastro.com'
overrideVersionCode = 1
overrideVersionCode = 2
isNsfw = true
}

View File

@ -24,6 +24,8 @@ class Manhastro : Madara(
override val useNewChapterEndpoint = true
override val mangaDetailsSelectorTitle = "div.summary_content h2"
override fun pageListParse(document: Document): List<Page> {
return document.selectFirst("script:containsData(imageLinks)")?.data()
?.let { imageLinksPattern.find(it)?.groups?.get(1)?.value }