forked from recloudstream/cloudstream
fixed next episode bug
This commit is contained in:
parent
8bbb20557f
commit
dbc366bd06
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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 -> {
|
||||
|
|
Loading…
Reference in a new issue