mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fix #528
This commit is contained in:
parent
9130622d4c
commit
c4de07abb3
2 changed files with 54 additions and 49 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 22
|
||||
version = 23
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.lagradost.cloudstream3.*
|
|||
import com.lagradost.cloudstream3.utils.AppUtils
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.M3u8Helper
|
||||
import com.lagradost.cloudstream3.utils.Qualities
|
||||
import org.jsoup.nodes.Element
|
||||
import java.net.URI
|
||||
|
||||
|
@ -125,11 +125,16 @@ class TimefourTv : MainAPI() {
|
|||
val host = getBaseUrl(iframe)
|
||||
val video = extractVideo(iframe)
|
||||
|
||||
M3u8Helper.generateM3u8(
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
this.name,
|
||||
it.channel_name ?: return@apmap,
|
||||
video ?: return@apmap,
|
||||
"$host/",
|
||||
).forEach(callback)
|
||||
Qualities.Unknown.value,
|
||||
isM3u8 = true,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue