This commit is contained in:
Olivia 2024-01-25 23:09:52 +07:00
parent 9130622d4c
commit c4de07abb3
2 changed files with 54 additions and 49 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 22 version = 23
cloudstream { cloudstream {

View file

@ -4,7 +4,7 @@ import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.utils.AppUtils import com.lagradost.cloudstream3.utils.AppUtils
import com.lagradost.cloudstream3.utils.AppUtils.toJson import com.lagradost.cloudstream3.utils.AppUtils.toJson
import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.M3u8Helper import com.lagradost.cloudstream3.utils.Qualities
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.net.URI import java.net.URI
@ -125,11 +125,16 @@ class TimefourTv : MainAPI() {
val host = getBaseUrl(iframe) val host = getBaseUrl(iframe)
val video = extractVideo(iframe) val video = extractVideo(iframe)
M3u8Helper.generateM3u8( callback.invoke(
ExtractorLink(
this.name,
it.channel_name ?: return@apmap, it.channel_name ?: return@apmap,
video ?: return@apmap, video ?: return@apmap,
"$host/", "$host/",
).forEach(callback) Qualities.Unknown.value,
isM3u8 = true,
)
)
} }
return true return true