Update YallaShootsProvider.kt

This commit is contained in:
Zaw 2022-08-17 22:50:52 +03:00 committed by GitHub
parent da4a07640e
commit 62caf3f96e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ class YallaShoots : MainAPI() {
callback: (ExtractorLink) -> Unit callback: (ExtractorLink) -> Unit
): Boolean { ): Boolean {
val doc = app.get("$data?serv=2").document val doc = app.get("$data?serv=2").document
val sourceLink = doc.select("script:contains(.m3u8)").html().replace(".*hls: \"|\"\\};.*".toRegex(),"") val sourceLink = doc.select("script:contains(.m3u8)").html().replace(".*hls: \"|\"};.*".toRegex(),"")
callback.invoke( callback.invoke(
ExtractorLink( ExtractorLink(
this.name, this.name,
@ -83,4 +83,4 @@ class YallaShoots : MainAPI() {
) )
return true return true
} }
} }