diff --git a/StremioX/src/main/kotlin/com/hexated/StremioC.kt b/StremioX/src/main/kotlin/com/hexated/StremioC.kt index add4ede6..9c766240 100644 --- a/StremioX/src/main/kotlin/com/hexated/StremioC.kt +++ b/StremioX/src/main/kotlin/com/hexated/StremioC.kt @@ -287,6 +287,7 @@ class StremioC : MainAPI() { private data class BehaviorHints( val proxyHeaders: ProxyHeaders?, + val headers: Map?, ) 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") ) ) diff --git a/StremioX/src/main/kotlin/com/hexated/StremioX.kt b/StremioX/src/main/kotlin/com/hexated/StremioX.kt index 1da80f3b..339c5277 100644 --- a/StremioX/src/main/kotlin/com/hexated/StremioX.kt +++ b/StremioX/src/main/kotlin/com/hexated/StremioX.kt @@ -256,6 +256,7 @@ open class StremioX : MainAPI() { private data class BehaviorHints( val proxyHeaders: ProxyHeaders?, + val headers: Map?, ) 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") ) )