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) val result = getKitsuData(query)
println("got getKitsuEpisodesDetails result $result")
val map = (result.data?.lookupMapping?.episodes?.nodes ?: return null).mapNotNull { ep -> val map = (result.data?.lookupMapping?.episodes?.nodes ?: return null).mapNotNull { ep ->
val num = ep?.num ?: return@mapNotNull null val num = ep?.num ?: return@mapNotNull null
num to ep num to ep
}.toMap() }.toMap()
println("got getKitsuEpisodesDetails map $map")
if (map.isNotEmpty()) { if (map.isNotEmpty()) {
cache[id to site] = map cache[id to site] = map
} }

View file

@ -522,7 +522,6 @@ class CS3IPlayer : IPlayer {
) )
setHandleAudioBecomingNoisy(true) setHandleAudioBecomingNoisy(true)
setPlaybackSpeed(playBackSpeed) setPlaybackSpeed(playBackSpeed)
} }
} }
} }
@ -699,7 +698,7 @@ class CS3IPlayer : IPlayer {
if (playWhenReady) { if (playWhenReady) {
when (playbackState) { when (playbackState) {
Player.STATE_READY -> { Player.STATE_READY -> {
requestAutoFocus?.invoke()
} }
Player.STATE_ENDED -> { Player.STATE_ENDED -> {
handleEvent(CSPlayerEvent.NextEpisode) handleEvent(CSPlayerEvent.NextEpisode)
@ -728,6 +727,7 @@ class CS3IPlayer : IPlayer {
override fun onIsPlayingChanged(isPlaying: Boolean) { override fun onIsPlayingChanged(isPlaying: Boolean) {
super.onIsPlayingChanged(isPlaying) super.onIsPlayingChanged(isPlaying)
if (isPlaying) { if (isPlaying) {
requestAutoFocus?.invoke()
onRenderFirst() onRenderFirst()
} }
} }

View file

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

View file

@ -383,7 +383,7 @@
<string name="dns_pref">DNS over HTTPS</string> <string name="dns_pref">DNS over HTTPS</string>
<string name="dns_pref_summary">Useful for bypassing ISP blocks</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="remove_site_pref">Remove site</string>
<string name="add_site_summary">Add a clone of an existing site, with a different url</string> <string name="add_site_summary">Add a clone of an existing site, with a different url</string>