mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
stremioX: fix headers
This commit is contained in:
parent
9b2b59f4fe
commit
cce2df2667
2 changed files with 4 additions and 2 deletions
|
@ -287,6 +287,7 @@ class StremioC : MainAPI() {
|
|||
|
||||
private data class BehaviorHints(
|
||||
val proxyHeaders: ProxyHeaders?,
|
||||
val headers: Map<String,String>?,
|
||||
)
|
||||
private data class Stream(
|
||||
val name: String?,
|
||||
|
@ -312,7 +313,7 @@ class StremioC : MainAPI() {
|
|||
url,
|
||||
"",
|
||||
getQualityFromName(description),
|
||||
headers = behaviorHints?.proxyHeaders?.request ?: mapOf(),
|
||||
headers = behaviorHints?.proxyHeaders?.request ?: behaviorHints?.headers ?: mapOf(),
|
||||
isM3u8 = URI(url).path.endsWith(".m3u8")
|
||||
)
|
||||
)
|
||||
|
|
|
@ -256,6 +256,7 @@ open class StremioX : MainAPI() {
|
|||
|
||||
private data class BehaviorHints(
|
||||
val proxyHeaders: ProxyHeaders?,
|
||||
val headers: Map<String,String>?,
|
||||
)
|
||||
|
||||
private data class Stream(
|
||||
|
@ -282,7 +283,7 @@ open class StremioX : MainAPI() {
|
|||
url,
|
||||
"",
|
||||
getQualityFromName(description),
|
||||
headers = behaviorHints?.proxyHeaders?.request ?: mapOf(),
|
||||
headers = behaviorHints?.proxyHeaders?.request ?: behaviorHints?.headers ?: mapOf(),
|
||||
isM3u8 = URI(url).path.endsWith(".m3u8")
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue