mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
split time4tv source
This commit is contained in:
parent
8a54373ccf
commit
62f184b993
2 changed files with 7 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 11
|
||||
version = 12
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.hexated
|
|||
import com.hexated.TimefourTvExtractor.getLink
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.M3u8Helper
|
||||
import com.lagradost.cloudstream3.utils.Qualities
|
||||
import org.jsoup.Jsoup
|
||||
import org.jsoup.nodes.Element
|
||||
|
@ -165,16 +166,11 @@ open class TimefourTv : MainAPI() {
|
|||
} ?: throw ErrorLoadingException()
|
||||
getLink(fixUrl(link))?.let { m3uLink ->
|
||||
val url = app.get(m3uLink, referer = "$mainServer/")
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
this.name,
|
||||
this.name,
|
||||
url.url,
|
||||
referer = "$mainServer/",
|
||||
quality = Qualities.Unknown.value,
|
||||
isM3u8 = true,
|
||||
)
|
||||
)
|
||||
M3u8Helper.generateM3u8(
|
||||
this.name,
|
||||
url.url,
|
||||
"$mainServer/",
|
||||
).forEach(callback)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue