Fix SuperStream timeout and Zoro

This commit is contained in:
Blatzar 2022-11-18 00:16:20 +01:00
parent 5b5d6d9481
commit cdb34effb3
4 changed files with 19 additions and 17 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 9
version = 10
cloudstream {

View file

@ -1,6 +1,7 @@
package com.lagradost
import com.fasterxml.jackson.annotation.JsonProperty
import com.lagradost.SflixProvider.Companion.extractRabbitStream
import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId
import com.lagradost.cloudstream3.LoadResponse.Companion.addMalId
@ -345,21 +346,21 @@ class ZoroProvider : MainAPI() {
val extractorLink = app.get(
link,
).parsed<RapidCloudResponse>().link
// val hasLoadedExtractorLink =
val hasLoadedExtractorLink =
loadExtractor(extractorLink, "https://rapid-cloud.ru/", subtitleCallback, callback)
// if (!hasLoadedExtractorLink) {
// extractRabbitStream(
// extractorLink,
// subtitleCallback,
// // Blacklist VidCloud for now
// { videoLink -> if (!videoLink.url.contains("betterstream")) callback(videoLink) },
//// false,
//// extractorData,
//// decryptKey = getKey()
// ) { sourceName ->
// sourceName + " - ${it.first}"
// }
// }
if (!hasLoadedExtractorLink) {
extractRabbitStream(
extractorLink,
subtitleCallback,
// Blacklist VidCloud for now
{ videoLink -> if (!videoLink.url.contains("betterstream")) callback(videoLink) },
false,
null,
decryptKey = getKey()
) { sourceName ->
sourceName + " - ${it.first}"
}
}
}
return true