mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
move superstream
This commit is contained in:
parent
1a341e6cf1
commit
0465f91c71
12 changed files with 1135 additions and 37 deletions
|
@ -1834,7 +1834,7 @@ object SoraExtractor : SoraStream() {
|
|||
data = mapOf(
|
||||
"index" to "0",
|
||||
"mid" to "$id",
|
||||
"wsk" to "f6ea6cde-e42b-4c26-98d3-b4fe48cdd4fb",
|
||||
"wsk" to "30fb68aa-1c71-4b8c-b5d4-4ca9222cfb45",
|
||||
"lid" to "",
|
||||
"liu" to ""
|
||||
),
|
||||
|
@ -2053,7 +2053,7 @@ object SoraExtractor : SoraStream() {
|
|||
"$dahmerMoviesAPI/tvs/${title?.replace(":", " -")}/Season $season/"
|
||||
}
|
||||
|
||||
val request = app.get(url, interceptor = TimeOutInterceptor())
|
||||
val request = app.get(url, timeout = 60L)
|
||||
if (!request.isSuccessful) return
|
||||
val paths = request.document.select("a").map {
|
||||
it.text() to it.attr("href")
|
||||
|
|
|
@ -1286,19 +1286,6 @@ private enum class Symbol(val decimalValue: Int) {
|
|||
}
|
||||
}
|
||||
|
||||
class TimeOutInterceptor : Interceptor {
|
||||
override fun intercept(chain: Interceptor.Chain): Response {
|
||||
val call = chain
|
||||
.withConnectTimeout(60, TimeUnit.SECONDS)
|
||||
.withReadTimeout(60, TimeUnit.SECONDS)
|
||||
.withWriteTimeout(60, TimeUnit.SECONDS)
|
||||
.request()
|
||||
.newBuilder()
|
||||
.build()
|
||||
return chain.proceed(call)
|
||||
}
|
||||
}
|
||||
|
||||
// steal from https://github.com/aniyomiorg/aniyomi-extensions/blob/master/src/en/aniwave/src/eu/kanade/tachiyomi/animeextension/en/nineanime/AniwaveUtils.kt
|
||||
// credits to @samfundev
|
||||
object AniwaveUtils {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue