From d4e784d40d35a769252371eca98431b83de2a555 Mon Sep 17 00:00:00 2001 From: Yush0DAN <157328957+Yush0DAN@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:59:01 -0600 Subject: [PATCH] =?UTF-8?q?-Pesta=C3=B1a=20de=20"Recientes"=20actualizada?= =?UTF-8?q?=20-=20ahora=20se=20muestran=20los=20ultimos=20episodios=20que?= =?UTF-8?q?=20se=20subieron=20=20(update=20page=20"Lastest")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/es/animeflv/build.gradle | 2 +- .../animeextension/es/animeflv/AnimeFlv.kt | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/es/animeflv/build.gradle b/src/es/animeflv/build.gradle index a0162c445f..6be736dc0c 100644 --- a/src/es/animeflv/build.gradle +++ b/src/es/animeflv/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'AnimeFLV' extClass = '.AnimeFlv' - extVersionCode = 60 + extVersionCode = 61 } apply from: "$rootDir/common.gradle" diff --git a/src/es/animeflv/src/eu/kanade/tachiyomi/animeextension/es/animeflv/AnimeFlv.kt b/src/es/animeflv/src/eu/kanade/tachiyomi/animeextension/es/animeflv/AnimeFlv.kt index 30b9d6ca95..d7f952a972 100644 --- a/src/es/animeflv/src/eu/kanade/tachiyomi/animeextension/es/animeflv/AnimeFlv.kt +++ b/src/es/animeflv/src/eu/kanade/tachiyomi/animeextension/es/animeflv/AnimeFlv.kt @@ -58,7 +58,7 @@ class AnimeFlv : ConfigurableAnimeSource, ParsedAnimeHttpSource() { override fun popularAnimeSelector(): String = "div.Container ul.ListAnimes li article" - override fun popularAnimeRequest(page: Int): Request = GET("$baseUrl/browse?order=rating&page=$page") + override fun popularAnimeRequest(page: Int): Request = GET("$baseUrl/browse?order=rating&page=$page", headers) override fun popularAnimeFromElement(element: Element): SAnime { val anime = SAnime.create() @@ -167,13 +167,19 @@ class AnimeFlv : ConfigurableAnimeSource, ParsedAnimeHttpSource() { } } - override fun latestUpdatesNextPageSelector() = popularAnimeNextPageSelector() + override fun latestUpdatesRequest(page: Int) = GET(baseUrl, headers) - override fun latestUpdatesFromElement(element: Element) = popularAnimeFromElement(element) + override fun latestUpdatesNextPageSelector() = null - override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/browse?order=added&page=$page") + override fun latestUpdatesSelector() = "div.Container ul.ListEpisodios li a.fa-play" - override fun latestUpdatesSelector() = popularAnimeSelector() + override fun latestUpdatesFromElement(element: Element): SAnime { + val anime = SAnime.create() + anime.setUrlWithoutDomain(element.select("a").attr("abs:href").replace("/ver/", "/anime/").substringBeforeLast("-")) + anime.title = element.select("strong.Title").text() + anime.thumbnail_url = element.select("span.Image img").attr("abs:src").replace("thumbs", "covers") + return anime + } override fun List