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