Compare commits

..

No commits in common. "616602643ff943d56e642966448530e82c1565c0" and "8ad684a001af1adae68cac97a2c6324cf52dce29" have entirely different histories.

2 changed files with 6 additions and 17 deletions

View File

@ -81,10 +81,6 @@ class StreamSB11 : StreamSB() {
override var mainUrl = "https://sbbrisk.com"
}
class Sblongvu : StreamSB() {
override var mainUrl = "https://sblongvu.com"
}
// This is a modified version of https://github.com/jmir1/aniyomi-extensions/blob/master/src/en/genoanime/src/eu/kanade/tachiyomi/animeextension/en/genoanime/extractors/StreamSBExtractor.kt
// The following code is under the Apache License 2.0 https://github.com/jmir1/aniyomi-extensions/blob/master/LICENSE
open class StreamSB : ExtractorApi() {

View File

@ -985,19 +985,12 @@ class CS3IPlayer : IPlayer {
// If the Network fails then ignore the exception if the duration is set.
// This is to switch mirrors automatically if the stream has not been fetched, but
// allow playing the buffer without internet as then the duration is fetched.
when {
error.errorCode == PlaybackException.ERROR_CODE_IO_NETWORK_CONNECTION_FAILED
&& exoPlayer?.duration != TIME_UNSET -> {
exoPlayer?.prepare()
}
error.errorCode == PlaybackException.ERROR_CODE_BEHIND_LIVE_WINDOW -> {
// Re-initialize player at the current live window default position.
exoPlayer?.seekToDefaultPosition()
exoPlayer?.prepare()
}
else -> {
playerError?.invoke(error)
}
if (error.errorCode == PlaybackException.ERROR_CODE_IO_NETWORK_CONNECTION_FAILED
&& exoPlayer?.duration != TIME_UNSET
) {
exoPlayer?.prepare()
} else {
playerError?.invoke(error)
}
super.onPlayerError(error)