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,
|
||||
callback: (ExtractorLink) -> Unit,
|
||||
) {
|
||||
val referer = "https://blackvid.space/"
|
||||
val key = "c3124ecca65f4e72ef5cb39033cdfed69697e94e"
|
||||
val url = if (season == null) {
|
||||
"$blackvidAPI/v3/movie/sources/$tmdbId?key=$key"
|
||||
|
@ -2134,26 +2135,18 @@ object SoraExtractor : SoraStream() {
|
|||
|
||||
json?.sources?.map { source ->
|
||||
source.sources.map s@{ s ->
|
||||
if(s.quality.equals("auto")) {
|
||||
M3u8Helper.generateM3u8(
|
||||
"Blackvid",
|
||||
s.url ?: return@s,
|
||||
"https://blackvid.space/",
|
||||
).forEach(callback)
|
||||
} else {
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
"Blackvid",
|
||||
"Blackvid - ${source.label}",
|
||||
"Blackvid${source.label}",
|
||||
s.url ?: return@s,
|
||||
"https://blackvid.space/",
|
||||
s.quality?.toIntOrNull() ?: Qualities.Unknown.value,
|
||||
referer,
|
||||
s.quality?.toIntOrNull() ?: Qualities.P1080.value,
|
||||
INFER_TYPE
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
json?.subtitles?.map { sub ->
|
||||
subtitleCallback.invoke(
|
||||
|
|
Loading…
Reference in a new issue