Skip to content

Commit

Permalink
fix(en/slothanime): Fix NPE (#3112)
Browse files Browse the repository at this point in the history
Signed-off-by: Secozzi <[email protected]>
  • Loading branch information
Secozzi authored Mar 29, 2024
1 parent 2effc7f commit 3725a14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/en/slothanime/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'SlothAnime'
extClass = '.SlothAnime'
extVersionCode = 1
extVersionCode = 2
}

apply from: "$rootDir/common.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
Expand Down

0 comments on commit 3725a14

Please sign in to comment.