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 = ""
|
var bodyText = ""
|
||||||
val doc = app.get(url, referer = referer).document
|
val doc = app.get(url, referer = referer).document
|
||||||
//Log.i(this.name, "Result => (url, script) $url / ${doc.select("script")}")
|
//Log.i(this.name, "Result => (url, script) $url / ${doc.select("script")}")
|
||||||
doc.select("script").forEach {
|
bodyText = doc.select("script").firstOrNull {
|
||||||
val text = it?.toString() ?: ""
|
val text = it?.toString() ?: ""
|
||||||
if (text.isNotBlank()) {
|
text.contains("var idUser")
|
||||||
if (text.contains("var idUser")) {
|
}?.toString() ?: ""
|
||||||
bodyText = text
|
|
||||||
//Log.i(this.name, "Result => (bodyText) $bodyText")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//Log.i(this.name, "Result => (bodyText) $bodyText")
|
//Log.i(this.name, "Result => (bodyText) $bodyText")
|
||||||
if (bodyText.isNotBlank()) {
|
if (bodyText.isNotBlank()) {
|
||||||
idUser = "(?<=var idUser = \")(.*)(?=\";)".toRegex().find(bodyText)
|
idUser = "(?<=var idUser = \")(.*)(?=\";)".toRegex().find(bodyText)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue