mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
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"),
|
episode.attr("href"),
|
||||||
)
|
)
|
||||||
}.toMutableList()
|
}.toMutableList()
|
||||||
episodes.sortBy { (it.season?.times(10000) ?: 0) + (it.episode ?: 0) }
|
|
||||||
return TvSeriesLoadResponse(
|
return TvSeriesLoadResponse(
|
||||||
title,
|
title,
|
||||||
url,
|
url,
|
||||||
|
|
|
@ -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 -> {
|
||||||
|
|
Loading…
Reference in a new issue