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
|
// use an integer for version numbers
|
||||||
version = 11
|
version = 12
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.hexated
|
||||||
import com.hexated.TimefourTvExtractor.getLink
|
import com.hexated.TimefourTvExtractor.getLink
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
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 com.lagradost.cloudstream3.utils.Qualities
|
||||||
import org.jsoup.Jsoup
|
import org.jsoup.Jsoup
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
|
@ -165,16 +166,11 @@ open class TimefourTv : MainAPI() {
|
||||||
} ?: throw ErrorLoadingException()
|
} ?: throw ErrorLoadingException()
|
||||||
getLink(fixUrl(link))?.let { m3uLink ->
|
getLink(fixUrl(link))?.let { m3uLink ->
|
||||||
val url = app.get(m3uLink, referer = "$mainServer/")
|
val url = app.get(m3uLink, referer = "$mainServer/")
|
||||||
callback.invoke(
|
M3u8Helper.generateM3u8(
|
||||||
ExtractorLink(
|
|
||||||
this.name,
|
|
||||||
this.name,
|
this.name,
|
||||||
url.url,
|
url.url,
|
||||||
referer = "$mainServer/",
|
"$mainServer/",
|
||||||
quality = Qualities.Unknown.value,
|
).forEach(callback)
|
||||||
isM3u8 = true,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue