small fix TimefourTv

This commit is contained in:
hexated 2022-10-17 08:35:49 +07:00
parent ebcb32d9d3
commit 93dfc5fb27
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
package com.hexated
import com.hexated.TimefourTvExtractor.getLink
import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.Qualities
@ -108,7 +109,7 @@ open class TimefourTv : MainAPI() {
} else {
data
} ?: throw ErrorLoadingException()
TimefourTvExtractor().getLink(fixUrl(link))?.let { m3uLink ->
getLink(fixUrl(link))?.let { m3uLink ->
callback.invoke(
ExtractorLink(
this.name,

View File

@ -7,7 +7,7 @@ import java.net.URI
var mainServer: String? = null
class TimefourTvExtractor : TimefourTv() {
object TimefourTvExtractor : TimefourTv() {
private fun getBaseUrl(url: String): String {
return URI(url).let {