forked from recloudstream/cloudstream
Set default start season to 1
This commit is contained in:
parent
a522ef0edb
commit
53519381d7
1 changed files with 2 additions and 2 deletions
|
@ -1926,7 +1926,7 @@ class ResultViewModel2 : ViewModel() {
|
||||||
// this takes the indexer most preferable by the user given the current sorting
|
// this takes the indexer most preferable by the user given the current sorting
|
||||||
val min = ranges.keys.minByOrNull { index ->
|
val min = ranges.keys.minByOrNull { index ->
|
||||||
kotlin.math.abs(
|
kotlin.math.abs(
|
||||||
index.season - (preferStartSeason ?: 0)
|
index.season - (preferStartSeason ?: 1)
|
||||||
) + if (index.dubStatus == preferDubStatus) 0 else 100000
|
) + if (index.dubStatus == preferDubStatus) 0 else 100000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2139,7 +2139,7 @@ class ResultViewModel2 : ViewModel() {
|
||||||
|
|
||||||
preferDubStatus = getDub(mainId) ?: preferDubStatus
|
preferDubStatus = getDub(mainId) ?: preferDubStatus
|
||||||
preferStartEpisode = getResultEpisode(mainId)
|
preferStartEpisode = getResultEpisode(mainId)
|
||||||
preferStartSeason = getResultSeason(mainId)
|
preferStartSeason = getResultSeason(mainId) ?: 1
|
||||||
|
|
||||||
setKey(
|
setKey(
|
||||||
DOWNLOAD_HEADER_CACHE,
|
DOWNLOAD_HEADER_CACHE,
|
||||||
|
|
Loading…
Reference in a new issue