mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Update Moshahda.kt
This commit is contained in:
parent
77ab2e8571
commit
de17edced3
1 changed files with 1 additions and 3 deletions
|
@ -17,8 +17,7 @@ class Moshahda : ExtractorApi() {
|
||||||
val sources = mutableListOf<ExtractorLink>()
|
val sources = mutableListOf<ExtractorLink>()
|
||||||
val regex = """\/embed-([0-9A-Za-z]*)""".toRegex()
|
val regex = """\/embed-([0-9A-Za-z]*)""".toRegex()
|
||||||
val scode = regex.find(url)?.groupValues?.getOrNull(1)
|
val scode = regex.find(url)?.groupValues?.getOrNull(1)
|
||||||
val slink = """https://moshahda.net/embed-$scode.html?"""
|
val slink = """$mainUrl/embed-$scode.html?"""
|
||||||
|
|
||||||
with(app.get(slink).document) {
|
with(app.get(slink).document) {
|
||||||
val data = this.select("body > script").mapNotNull { script ->
|
val data = this.select("body > script").mapNotNull { script ->
|
||||||
if (script.data().contains("sources: [")) {
|
if (script.data().contains("sources: [")) {
|
||||||
|
@ -40,7 +39,6 @@ class Moshahda : ExtractorApi() {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return sources
|
return sources
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue