Skip to content

Commit

Permalink
-Pestaña de "Recientes" actualizada - ahora se muestran los ultimos e…
Browse files Browse the repository at this point in the history
…pisodios que se subieron (#134)

(update page "Lastest")
  • Loading branch information
Yush0DAN authored Nov 5, 2024
1 parent 9d5a08c commit b89ec10
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/es/animeflv/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'AnimeFLV'
extClass = '.AnimeFlv'
extVersionCode = 60
extVersionCode = 61
}

apply from: "$rootDir/common.gradle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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<Video>.sort(): List<Video> {
val quality = preferences.getString(PREF_QUALITY_KEY, PREF_QUALITY_DEFAULT)!!
Expand Down

0 comments on commit b89ec10

Please sign in to comment.