This commit is contained in:
jack 2023-11-19 05:00:27 +07:00
parent d33a7aa039
commit f6051f81bc
4 changed files with 7 additions and 5 deletions

View file

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

View file

@ -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"

View file

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

View file

@ -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