removed Youtube from UniqueStream

This commit is contained in:
hexated 2022-11-19 12:48:25 +07:00
parent 78a9893648
commit de52441ad0
1 changed files with 32 additions and 28 deletions

View File

@ -539,7 +539,8 @@ object SoraExtractor : SoraStream() {
referer = url
).parsed<ResponseHash>().embed_url.let { fixUrl(it) }
if (source.contains("uniquestream")) {
when {
source.contains("uniquestream") -> {
val resDoc = app.get(
source, referer = "$uniqueStreamAPI/", headers = mapOf(
"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
}
}
}
}