fix(en/gogoanime): Filter, description fix (#3126)

This commit is contained in:
Khaled
2024-04-06 01:26:27 +06:00
committed by GitHub
parent a12caa15dd
commit 8df2435588
3 changed files with 6 additions and 3 deletions

View File

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

View File

@ -106,7 +106,8 @@ class GogoAnime : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
status = parseStatus(infoDocument.getInfo("Status:").orEmpty())
description = buildString {
infoDocument.getInfo("Plot Summary:")?.also(::append)
val summary = infoDocument.selectFirst("div.anime_info_body_bg > div.description")
append(summary?.text())
// add alternative name to anime description
infoDocument.getInfo("Other name:")?.also {
@ -223,7 +224,8 @@ class GogoAnime : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
"Mp4upload",
"FileLions",
)
private val HOSTERS_NAMES = arrayOf( // Names that appears in the gogo html
private val HOSTERS_NAMES = arrayOf(
// Names that appears in the gogo html
"vidcdn",
"anime",
"doodstream",

View File

@ -205,6 +205,7 @@ object GogoAnimeFilters {
// copy($("div.cls_year ul.dropdown-menu li").map((i,el) => `Pair("${$(el).text().trim()}", "${$(el).find("input").first().attr('value')}")`).get().join(',\n'))
// on /filter.html
val YEAR_SEARCH_LIST = arrayOf(
Pair("2024", "2024"),
Pair("2023", "2023"),
Pair("2022", "2022"),
Pair("2021", "2021"),