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"),
)
}.toMutableList()
episodes.sortBy { (it.season?.times(10000) ?: 0) + (it.episode ?: 0) }
return TvSeriesLoadResponse(
title,
url,

View file

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