Manwa: Fix NPE in mangaDetailsParse() (#16474)

This commit is contained in:
anenasa 2023-05-18 10:52:05 +08:00 committed by GitHub
parent 961772439c
commit 62897219ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Manwa'
pkgNameSuffix = 'zh.manwa'
extClass = '.Manwa'
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -123,7 +123,7 @@ class Manwa : ParsedHttpSource(), ConfigurableSource {
// Details
override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply {
title = document.selectFirst("p.detail-main-info-title")!!.text()
title = document.selectFirst(".detail-main-info-title")!!.text()
thumbnail_url = document.selectFirst("div.detail-main-cover > img")!!.attr("data-original")
author = document.select("p.detail-main-info-author > span.detail-main-info-value > a").text()
artist = author