mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
small fix
This commit is contained in:
parent
8fc790ab9b
commit
f90a5dd2cb
4 changed files with 3 additions and 8 deletions
|
@ -88,14 +88,10 @@ query {
|
|||
}
|
||||
}"""
|
||||
val result = getKitsuData(query)
|
||||
println("got getKitsuEpisodesDetails result $result")
|
||||
|
||||
val map = (result.data?.lookupMapping?.episodes?.nodes ?: return null).mapNotNull { ep ->
|
||||
val num = ep?.num ?: return@mapNotNull null
|
||||
num to ep
|
||||
}.toMap()
|
||||
println("got getKitsuEpisodesDetails map $map")
|
||||
|
||||
if (map.isNotEmpty()) {
|
||||
cache[id to site] = map
|
||||
}
|
||||
|
|
|
@ -522,7 +522,6 @@ class CS3IPlayer : IPlayer {
|
|||
)
|
||||
setHandleAudioBecomingNoisy(true)
|
||||
setPlaybackSpeed(playBackSpeed)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -699,7 +698,7 @@ class CS3IPlayer : IPlayer {
|
|||
if (playWhenReady) {
|
||||
when (playbackState) {
|
||||
Player.STATE_READY -> {
|
||||
requestAutoFocus?.invoke()
|
||||
|
||||
}
|
||||
Player.STATE_ENDED -> {
|
||||
handleEvent(CSPlayerEvent.NextEpisode)
|
||||
|
@ -728,6 +727,7 @@ class CS3IPlayer : IPlayer {
|
|||
override fun onIsPlayingChanged(isPlaying: Boolean) {
|
||||
super.onIsPlayingChanged(isPlaying)
|
||||
if (isPlaying) {
|
||||
requestAutoFocus?.invoke()
|
||||
onRenderFirst()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1428,7 +1428,6 @@ class ResultFragment : ResultTrailerPlayer() {
|
|||
|
||||
observe(syncModel.syncIds) {
|
||||
syncdata = it
|
||||
println("syncdata: $syncdata")
|
||||
}
|
||||
|
||||
var currentSyncProgress = 0
|
||||
|
|
|
@ -383,7 +383,7 @@
|
|||
<string name="dns_pref">DNS over HTTPS</string>
|
||||
<string name="dns_pref_summary">Useful for bypassing ISP blocks</string>
|
||||
|
||||
<string name="add_site_pref">Add site</string>
|
||||
<string name="add_site_pref">Clone site</string>
|
||||
<string name="remove_site_pref">Remove site</string>
|
||||
<string name="add_site_summary">Add a clone of an existing site, with a different url</string>
|
||||
|
||||
|
|
Loading…
Reference in a new issue