Supports m3u8

This commit is contained in:
Luna712 2023-10-02 18:02:18 -06:00 committed by GitHub
parent fcd839d5df
commit 1a8af4fd3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,8 +224,9 @@ class CS3IPlayer : IPlayer {
// release the current exoplayer and cache // release the current exoplayer and cache
releasePlayer() releasePlayer()
if (link != null) { if (link != null) {
// only video support atm // only video and m3u8 support atm (DASH is untested)
if (link.type == ExtractorLinkType.VIDEO && preview) { val isSupportedType == link.type == ExtractorLinkType.VIDEO || link.type == ExtractorLinkType.M3U8
if (isSupportedType && preview) {
val headers = if (link.referer.isBlank()) { val headers = if (link.referer.isBlank()) {
link.headers link.headers
} else { } else {