Fix for not saving streamCacheKey after changing to a next episode from the player
This commit is contained in:
parent
0a900ce15a
commit
ba6fb93123
1 changed files with 6 additions and 5 deletions
|
|
@ -298,11 +298,12 @@ class PlayerRuntimeController(
|
|||
internal var libassPipelineDecisionStreamUrl: String? = null
|
||||
internal var episodeStreamsJob: Job? = null
|
||||
internal var episodeStreamsCacheRequestKey: String? = null
|
||||
internal val streamCacheKey: String? by lazy {
|
||||
val type = contentType?.lowercase()
|
||||
val vid = currentVideoId
|
||||
if (type.isNullOrBlank() || vid.isNullOrBlank()) null else "$type|$vid"
|
||||
}
|
||||
internal val streamCacheKey: String?
|
||||
get() {
|
||||
val type = contentType?.lowercase()
|
||||
val vid = currentVideoId
|
||||
return if (type.isNullOrBlank() || vid.isNullOrBlank()) null else "$type|$vid"
|
||||
}
|
||||
|
||||
init {
|
||||
if (!navigationArgs.startFromBeginning) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue