mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed hls shit
This commit is contained in:
parent
dffa7a39c4
commit
e6e93225ff
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ import com.lagradost.cloudstream3.mvvm.logError
|
|||
class M3u8Helper {
|
||||
private val ENCRYPTION_DETECTION_REGEX = Regex("#EXT-X-KEY:METHOD=([^,]+),")
|
||||
private val ENCRYPTION_URL_IV_REGEX = Regex("#EXT-X-KEY:METHOD=([^,]+),URI=\"([^\"]+)\"(?:,IV=(.*))?")
|
||||
private val QUALITY_REGEX = Regex("""#EXT-X-STREAM-INF:.*RESOLUTION=\d+x(\d+).*\n(.*)""")
|
||||
private val QUALITY_REGEX = Regex("""#EXT-X-STREAM-INF:.*(?:RESOLUTION=\d+x(\d+))?.*\n(.*)""")
|
||||
private val TS_EXTENSION_REGEX = Regex("""(.*\.ts.*)""")
|
||||
|
||||
private fun absoluteExtensionDetermination(url: String): String? {
|
||||
|
@ -103,7 +103,7 @@ class M3u8Helper {
|
|||
yield(
|
||||
M3u8Stream(
|
||||
m3u8Link,
|
||||
quality.toInt(),
|
||||
quality.toIntOrNull(),
|
||||
m3u8.headers
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue