forked from recloudstream/cloudstream
removed prints
This commit is contained in:
parent
f77fe0a31e
commit
a5cee36572
6 changed files with 4 additions and 8 deletions
|
@ -338,7 +338,7 @@ object CommonActivity {
|
|||
PlayerEventType.SkipOp
|
||||
}
|
||||
KeyEvent.KEYCODE_V, KeyEvent.KEYCODE_NUMPAD_5, KeyEvent.KEYCODE_5 -> {
|
||||
PlayerEventType.SkipOp
|
||||
PlayerEventType.SkipCurrentChapter
|
||||
}
|
||||
KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE, KeyEvent.KEYCODE_P, KeyEvent.KEYCODE_SPACE, KeyEvent.KEYCODE_NUMPAD_ENTER, KeyEvent.KEYCODE_ENTER -> { // space is not captured due to navigation
|
||||
PlayerEventType.PlayPauseToggle
|
||||
|
|
|
@ -1039,7 +1039,6 @@ class CS3IPlayer : IPlayer {
|
|||
override fun addTimeStamps(timeStamps: List<EpisodeSkip.SkipStamp>) {
|
||||
lastTimeStamps = timeStamps
|
||||
timeStamps.forEach { timestamp ->
|
||||
println("ADDING: $timestamp")
|
||||
exoPlayer?.createMessage { _, payload ->
|
||||
if (payload is EpisodeSkip.SkipStamp) // this should always be true
|
||||
onTimestampInvoked?.invoke(payload)
|
||||
|
|
|
@ -186,6 +186,7 @@ class GeneratorPlayer : FullScreenPlayer() {
|
|||
),
|
||||
)
|
||||
}
|
||||
player.addTimeStamps(listOf()) // clear stamps
|
||||
}
|
||||
|
||||
private fun sortLinks(useQualitySettings: Boolean = true): List<Pair<ExtractorLink?, ExtractorUri?>> {
|
||||
|
|
|
@ -121,7 +121,6 @@ class PlayerGeneratorViewModel : ViewModel() {
|
|||
private var currentStampJob: Job? = null
|
||||
|
||||
fun loadStamps(duration: Long) {
|
||||
println("Starting loadStamps with duration = $duration")
|
||||
//currentStampJob?.cancel()
|
||||
currentStampJob = ioSafe {
|
||||
val meta = generator?.getCurrent()
|
||||
|
|
|
@ -37,7 +37,7 @@ object EpisodeSkip {
|
|||
private val cachedStamps = HashMap<Int, List<SkipStamp>>()
|
||||
|
||||
private fun shouldSkipToNextEpisode(endMs: Long, episodeDurationMs: Long): Boolean {
|
||||
return (episodeDurationMs - endMs) < 12_000L
|
||||
return episodeDurationMs - endMs < 12_000L
|
||||
}
|
||||
|
||||
suspend fun getStamps(
|
||||
|
@ -94,11 +94,8 @@ object AniSkip {
|
|||
Log.i(TAG, "Requesting $url")
|
||||
|
||||
val a = app.get(url)
|
||||
//println("GOT RESPONSE:::.")
|
||||
val res = a.parsed<AniSkipResponse>()
|
||||
Log.i(TAG, "Found ${res.found} with ${res.results?.size} results")
|
||||
|
||||
// Log.i("AniSkip", "Response = $res")
|
||||
if (res.found) res.results else null
|
||||
} catch (t: Throwable) {
|
||||
Log.i(TAG, "error = ${t.message}")
|
||||
|
|
|
@ -334,7 +334,7 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:strokeColor="@color/white"
|
||||
app:strokeWidth="1dp"
|
||||
android:text="Skip Opening" />
|
||||
tools:text="Skip Opening" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in a new issue