Compare commits
3 Commits
8ad684a001
...
616602643f
Author | SHA1 | Date |
---|---|---|
Sir Aguacata | 616602643f | |
Sarlay | 94e7eb8e9d | |
Shif-Jess | 4f9016713f |
|
@ -81,6 +81,10 @@ 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() {
|
||||
|
|
|
@ -985,13 +985,20 @@ 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.
|
||||
if (error.errorCode == PlaybackException.ERROR_CODE_IO_NETWORK_CONNECTION_FAILED
|
||||
&& exoPlayer?.duration != TIME_UNSET
|
||||
) {
|
||||
when {
|
||||
error.errorCode == PlaybackException.ERROR_CODE_IO_NETWORK_CONNECTION_FAILED
|
||||
&& exoPlayer?.duration != TIME_UNSET -> {
|
||||
exoPlayer?.prepare()
|
||||
} else {
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
super.onPlayerError(error)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue