fix(en/slothanime): Fix NPE (#3112)

Signed-off-by: Secozzi <folke.steen85@gmail.com>
This commit is contained in:
Secozzi 2024-03-29 16:11:01 +00:00 committed by GitHub
parent 2effc7fca2
commit 3725a1432d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'SlothAnime'
extClass = '.SlothAnime'
extVersionCode = 1
extVersionCode = 2
}
apply from: "$rootDir/common.gradle"

View File

@ -116,7 +116,7 @@ class SlothAnime : ParsedAnimeHttpSource() {
// =========================== Anime Details ============================
override fun animeDetailsParse(document: Document): SAnime = SAnime.create().apply {
title = document.selectFirst(".single-title > h5")!!.text()
title = document.selectFirst(".single-title > *:not(.single-altername)")!!.text()
thumbnail_url = document.selectFirst(".single-cover > img")!!.imgAttr()
description = document.selectFirst(".single-detail:has(span:contains(Description)) .more-content")?.text()
genre = document.select(".single-tag > a.tag").joinToString { it.text() }