fixed TimefourTv

This commit is contained in:
hexated 2022-12-29 22:03:27 +07:00
parent cffce41393
commit 8a54373ccf
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -164,11 +164,12 @@ 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/")
callback.invoke( callback.invoke(
ExtractorLink( ExtractorLink(
this.name, this.name,
this.name, this.name,
m3uLink, url.url,
referer = "$mainServer/", referer = "$mainServer/",
quality = Qualities.Unknown.value, quality = Qualities.Unknown.value,
isM3u8 = true, isM3u8 = true,