small fix

This commit is contained in:
LagradOst 2022-06-18 15:23:56 +02:00
parent 8fc790ab9b
commit f90a5dd2cb
4 changed files with 3 additions and 8 deletions

View file

@ -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
}

View file

@ -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()
}
}

View file

@ -1428,7 +1428,6 @@ class ResultFragment : ResultTrailerPlayer() {
observe(syncModel.syncIds) {
syncdata = it
println("syncdata: $syncdata")
}
var currentSyncProgress = 0

View file

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