fixed next episode bug

This commit is contained in:
LagradOst 2022-03-12 15:34:44 +01:00
parent 8bbb20557f
commit dbc366bd06
2 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ class FilmanProvider : MainAPI() {
episode.attr("href"), episode.attr("href"),
) )
}.toMutableList() }.toMutableList()
episodes.sortBy { (it.season?.times(10000) ?: 0) + (it.episode ?: 0) }
return TvSeriesLoadResponse( return TvSeriesLoadResponse(
title, title,
url, url,

View file

@ -361,10 +361,10 @@ class ResultViewModel : ViewModel() {
)) ))
} }
idIndex++ idIndex++
episodes.sortBy { it.episode }
Pair(ep.key, episodes) Pair(ep.key, episodes)
}.toMap() }.toMap()
_dubSubEpisodes.postValue(res) _dubSubEpisodes.postValue(res)
res[dubStatus]?.let { episodes -> res[dubStatus]?.let { episodes ->
updateEpisodes(mainId, episodes, -1) updateEpisodes(mainId, episodes, -1)
@ -392,8 +392,8 @@ class ResultViewModel : ViewModel() {
mainId mainId
) )
) )
} }
episodes.sortBy { (it.season?.times(10000) ?: 0) + it.episode }
updateEpisodes(mainId, episodes, -1) updateEpisodes(mainId, episodes, -1)
} }
is MovieLoadResponse -> { is MovieLoadResponse -> {