mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
parent
d33a7aa039
commit
f6051f81bc
4 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 2
|
version = 3
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
|
|
||||||
class Phim1080Provider : MainAPI() {
|
class Phim1080Provider : MainAPI() {
|
||||||
override var mainUrl = "https://phimnhanh2.com"
|
override var mainUrl = "https://phimmoi2.com"
|
||||||
override var name = "Phim1080"
|
override var name = "Phim1080"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override var lang = "vi"
|
override var lang = "vi"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 18
|
version = 19
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -72,7 +72,9 @@ object TimefourTvExtractor : TimefourTv() {
|
||||||
return getSportLink(url)
|
return getSportLink(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(url.contains(daddyUrl.getHost(), true)) {
|
val daddyHost = daddyUrl.getHost()
|
||||||
|
|
||||||
|
if(url.contains(daddyHost, true)) {
|
||||||
mainServer = getBaseUrl(url)
|
mainServer = getBaseUrl(url)
|
||||||
return getFinalLink(app.get(url, referer = daddyUrl))
|
return getFinalLink(app.get(url, referer = daddyUrl))
|
||||||
}
|
}
|
||||||
|
@ -101,7 +103,7 @@ object TimefourTvExtractor : TimefourTv() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
val linkFirst = "$iframe$channel.php"
|
val linkFirst = if(iframe.contains(daddyHost)) "${iframe.substringAfter("?")}$channel.php" else "$iframe$channel.php"
|
||||||
val refFirst = getBaseUrl(url)
|
val refFirst = getBaseUrl(url)
|
||||||
|
|
||||||
val docSecond = app.get(fixUrl(linkFirst), referer = refFirst).document
|
val docSecond = app.get(fixUrl(linkFirst), referer = refFirst).document
|
||||||
|
|
Loading…
Reference in a new issue