fix(en/slothanime): Fix NPE (#3112)
Signed-off-by: Secozzi <folke.steen85@gmail.com>
This commit is contained in:
parent
2effc7fca2
commit
3725a1432d
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'SlothAnime'
|
||||
extClass = '.SlothAnime'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
@ -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() }
|
||||
|
Loading…
x
Reference in New Issue
Block a user