mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
getAndUnpack now search on all html file
This commit is contained in:
parent
7f732f7f41
commit
4d5834d9bc
1 changed files with 2 additions and 2 deletions
|
@ -63,14 +63,14 @@ class CalcioStreamingProvider : MainAPI() {
|
||||||
private fun matchFound(document: Document) : Boolean {
|
private fun matchFound(document: Document) : Boolean {
|
||||||
return Regex(""""((.|\n)*?).";""").containsMatchIn(
|
return Regex(""""((.|\n)*?).";""").containsMatchIn(
|
||||||
getAndUnpack(
|
getAndUnpack(
|
||||||
document.select("script")[6].childNode(0).toString()
|
document.toString()
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getUrl(document: Document):String{
|
private fun getUrl(document: Document):String{
|
||||||
return Regex(""""((.|\n)*?).";""").find(
|
return Regex(""""((.|\n)*?).";""").find(
|
||||||
getAndUnpack(
|
getAndUnpack(
|
||||||
document.select("script")[6].childNode(0).toString()
|
document.toString()
|
||||||
))!!.value.replace("""src="""", "").replace(""""""", "").replace(";", "")
|
))!!.value.replace("""src="""", "").replace(""""""", "").replace(";", "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue