Skip to content

Commit

Permalink
fix(es/Hackstore): Fix orden ep and not found description
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark25 committed Jan 27, 2024
1 parent 0504703 commit f727ef9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Hackstore : ConfigurableAnimeSource, ParsedAnimeHttpSource() {

// =========================== Anime Details ============================
override fun animeDetailsParse(document: Document): SAnime {
val ismovie = getFilterList().find { it is GenreFilter }?.let { it as GenreFilter }?.toUriPart() == "peliculas"
val ismovie = document.selectFirst("#main-content > div > div.content-area.twelve.columns > div.watch-content > center > div > p:nth-child(1)") != null
if (ismovie) {
val anime = SAnime.create()
anime.description = document.selectFirst("#main-content > div > div.content-area.twelve.columns > div.watch-content > center > div > p:nth-child(1)")!!.text().removeSurrounding("\"")
Expand Down Expand Up @@ -175,6 +175,7 @@ class Hackstore : ConfigurableAnimeSource, ParsedAnimeHttpSource() {

episode.name = "T$seasonNumber - E$episodeNumber"
episode.episode_number = episodeNumber.toFloat()
episodeList.add(0, episode)
episode.setUrlWithoutDomain(episodeLink)

episodeList.add(episode)
Expand Down

0 comments on commit f727ef9

Please sign in to comment.