mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
revert
This commit is contained in:
parent
e54f5843f3
commit
6e5a313680
1 changed files with 8 additions and 15 deletions
|
@ -2122,6 +2122,7 @@ object SoraExtractor : SoraStream() {
|
||||||
subtitleCallback: (SubtitleFile) -> Unit,
|
subtitleCallback: (SubtitleFile) -> Unit,
|
||||||
callback: (ExtractorLink) -> Unit,
|
callback: (ExtractorLink) -> Unit,
|
||||||
) {
|
) {
|
||||||
|
val referer = "https://blackvid.space/"
|
||||||
val key = "c3124ecca65f4e72ef5cb39033cdfed69697e94e"
|
val key = "c3124ecca65f4e72ef5cb39033cdfed69697e94e"
|
||||||
val url = if (season == null) {
|
val url = if (season == null) {
|
||||||
"$blackvidAPI/v3/movie/sources/$tmdbId?key=$key"
|
"$blackvidAPI/v3/movie/sources/$tmdbId?key=$key"
|
||||||
|
@ -2134,24 +2135,16 @@ object SoraExtractor : SoraStream() {
|
||||||
|
|
||||||
json?.sources?.map { source ->
|
json?.sources?.map { source ->
|
||||||
source.sources.map s@{ s ->
|
source.sources.map s@{ s ->
|
||||||
if(s.quality.equals("auto")) {
|
callback.invoke(
|
||||||
M3u8Helper.generateM3u8(
|
ExtractorLink(
|
||||||
"Blackvid",
|
"Blackvid",
|
||||||
|
"Blackvid${source.label}",
|
||||||
s.url ?: return@s,
|
s.url ?: return@s,
|
||||||
"https://blackvid.space/",
|
referer,
|
||||||
).forEach(callback)
|
s.quality?.toIntOrNull() ?: Qualities.P1080.value,
|
||||||
} else {
|
INFER_TYPE
|
||||||
callback.invoke(
|
|
||||||
ExtractorLink(
|
|
||||||
"Blackvid",
|
|
||||||
"Blackvid - ${source.label}",
|
|
||||||
s.url ?: return@s,
|
|
||||||
"https://blackvid.space/",
|
|
||||||
s.quality?.toIntOrNull() ?: Qualities.Unknown.value,
|
|
||||||
INFER_TYPE
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
}
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue