Fix for not saving streamCacheKey after changing to a next episode from the player

This commit is contained in:
skoruppa 2026-04-07 08:41:11 +02:00
parent 0a900ce15a
commit ba6fb93123

View file

@ -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) {