mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
removed Youtube from UniqueStream
This commit is contained in:
parent
aa43d817c8
commit
a61d12af5f
1 changed files with 32 additions and 28 deletions
|
@ -539,7 +539,8 @@ object SoraExtractor : SoraStream() {
|
||||||
referer = url
|
referer = url
|
||||||
).parsed<ResponseHash>().embed_url.let { fixUrl(it) }
|
).parsed<ResponseHash>().embed_url.let { fixUrl(it) }
|
||||||
|
|
||||||
if (source.contains("uniquestream")) {
|
when {
|
||||||
|
source.contains("uniquestream") -> {
|
||||||
val resDoc = app.get(
|
val resDoc = app.get(
|
||||||
source, referer = "$uniqueStreamAPI/", headers = mapOf(
|
source, referer = "$uniqueStreamAPI/", headers = mapOf(
|
||||||
"Accept" to "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"
|
"Accept" to "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"
|
||||||
|
@ -568,8 +569,11 @@ object SoraExtractor : SoraStream() {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
} else {
|
}
|
||||||
loadExtractor(source, "$uniqueStreamAPI/", subtitleCallback, callback)
|
!source.contains("youtube") -> loadExtractor(source, "$uniqueStreamAPI/", subtitleCallback, callback)
|
||||||
|
else -> {
|
||||||
|
// pass
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue