mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small fix
This commit is contained in:
parent
73197e87d6
commit
454ae38040
1 changed files with 14 additions and 6 deletions
|
@ -2134,16 +2134,24 @@ object SoraExtractor : SoraStream() {
|
|||
|
||||
json?.sources?.map { source ->
|
||||
source.sources.map s@{ s ->
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
if(s.quality.equals("auto")) {
|
||||
M3u8Helper.generateM3u8(
|
||||
"Blackvid",
|
||||
"Blackvid${source.label}",
|
||||
s.url ?: return@s,
|
||||
"https://blackvid.space/",
|
||||
s.quality?.toIntOrNull() ?: Qualities.Unknown.value,
|
||||
INFER_TYPE
|
||||
).forEach(callback)
|
||||
} else {
|
||||
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