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)
|
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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue