From 8df24355882186520636aa4ca20f71842789a170 Mon Sep 17 00:00:00 2001 From: Khaled Date: Sat, 6 Apr 2024 01:26:27 +0600 Subject: [PATCH] fix(en/gogoanime): Filter, description fix (#3126) --- src/en/gogoanime/build.gradle | 2 +- .../tachiyomi/animeextension/en/gogoanime/GogoAnime.kt | 6 ++++-- .../animeextension/en/gogoanime/GogoAnimeFilters.kt | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/en/gogoanime/build.gradle b/src/en/gogoanime/build.gradle index 82b2708ab2..dfb1b71f8a 100644 --- a/src/en/gogoanime/build.gradle +++ b/src/en/gogoanime/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Gogoanime' extClass = '.GogoAnime' - extVersionCode = 81 + extVersionCode = 82 } apply from: "$rootDir/common.gradle" diff --git a/src/en/gogoanime/src/eu/kanade/tachiyomi/animeextension/en/gogoanime/GogoAnime.kt b/src/en/gogoanime/src/eu/kanade/tachiyomi/animeextension/en/gogoanime/GogoAnime.kt index ba795ce147..b05f103c16 100644 --- a/src/en/gogoanime/src/eu/kanade/tachiyomi/animeextension/en/gogoanime/GogoAnime.kt +++ b/src/en/gogoanime/src/eu/kanade/tachiyomi/animeextension/en/gogoanime/GogoAnime.kt @@ -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", diff --git a/src/en/gogoanime/src/eu/kanade/tachiyomi/animeextension/en/gogoanime/GogoAnimeFilters.kt b/src/en/gogoanime/src/eu/kanade/tachiyomi/animeextension/en/gogoanime/GogoAnimeFilters.kt index 7b445d8ccc..abef72d77e 100644 --- a/src/en/gogoanime/src/eu/kanade/tachiyomi/animeextension/en/gogoanime/GogoAnimeFilters.kt +++ b/src/en/gogoanime/src/eu/kanade/tachiyomi/animeextension/en/gogoanime/GogoAnimeFilters.kt @@ -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"),