mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small fix TimefourTv
This commit is contained in:
parent
ebcb32d9d3
commit
93dfc5fb27
2 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
package com.hexated
|
package com.hexated
|
||||||
|
|
||||||
|
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.Qualities
|
import com.lagradost.cloudstream3.utils.Qualities
|
||||||
|
@ -108,7 +109,7 @@ open class TimefourTv : MainAPI() {
|
||||||
} else {
|
} else {
|
||||||
data
|
data
|
||||||
} ?: throw ErrorLoadingException()
|
} ?: throw ErrorLoadingException()
|
||||||
TimefourTvExtractor().getLink(fixUrl(link))?.let { m3uLink ->
|
getLink(fixUrl(link))?.let { m3uLink ->
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
this.name,
|
this.name,
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.net.URI
|
||||||
|
|
||||||
var mainServer: String? = null
|
var mainServer: String? = null
|
||||||
|
|
||||||
class TimefourTvExtractor : TimefourTv() {
|
object TimefourTvExtractor : TimefourTv() {
|
||||||
|
|
||||||
private fun getBaseUrl(url: String): String {
|
private fun getBaseUrl(url: String): String {
|
||||||
return URI(url).let {
|
return URI(url).let {
|
||||||
|
|
Loading…
Reference in a new issue