stremioX: fix headers

This commit is contained in:
hexated 2023-04-16 11:24:43 +07:00
parent 9b2b59f4fe
commit cce2df2667
2 changed files with 4 additions and 2 deletions

View file

@ -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")
)
)

View file

@ -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")
)
)