mirror of
https://github.com/Jacekun/cs3xxx-repo.git
synced 2024-08-14 23:57:09 +00:00
Optimizations and minor fixes.
This commit is contained in:
parent
2ccc4cec3a
commit
cf707a8cd0
12 changed files with 102 additions and 121 deletions
|
@ -5,9 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
|||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.app
|
||||
import com.lagradost.cloudstream3.utils.AppUtils
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.getQualityFromName
|
||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
import org.jsoup.Jsoup
|
||||
|
||||
|
@ -174,8 +172,7 @@ class JavTube : MainAPI() {
|
|||
).let { postreq ->
|
||||
Log.i(DEV, "Post => (${postreq.code}) ${postreq.text}")
|
||||
|
||||
val doc = Jsoup.parse(postreq.text)
|
||||
val src = doc.selectFirst("iframe")?.attr("src") ?: ""
|
||||
val src = Jsoup.parse(postreq.text).selectFirst("iframe")?.attr("src") ?: ""
|
||||
Log.i(DEV, "Post Url => $src")
|
||||
|
||||
val id = src.trimEnd('/').split("/").last()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue