mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
cleanups
This commit is contained in:
parent
aa9ce3f963
commit
c22f7b35f0
1 changed files with 3 additions and 8 deletions
|
@ -23,15 +23,10 @@ class PlayLtXyz: ExtractorApi() {
|
|||
var bodyText = ""
|
||||
val doc = app.get(url, referer = referer).document
|
||||
//Log.i(this.name, "Result => (url, script) $url / ${doc.select("script")}")
|
||||
doc.select("script").forEach {
|
||||
bodyText = doc.select("script").firstOrNull {
|
||||
val text = it?.toString() ?: ""
|
||||
if (text.isNotBlank()) {
|
||||
if (text.contains("var idUser")) {
|
||||
bodyText = text
|
||||
//Log.i(this.name, "Result => (bodyText) $bodyText")
|
||||
}
|
||||
}
|
||||
}
|
||||
text.contains("var idUser")
|
||||
}?.toString() ?: ""
|
||||
//Log.i(this.name, "Result => (bodyText) $bodyText")
|
||||
if (bodyText.isNotBlank()) {
|
||||
idUser = "(?<=var idUser = \")(.*)(?=\";)".toRegex().find(bodyText)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue