mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
UPDATED
This commit is contained in:
parent
bae93e2b89
commit
7f7797a8b8
1 changed files with 4 additions and 10 deletions
|
@ -21,16 +21,10 @@ open class StreamoUpload : ExtractorApi() {
|
|||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink> {
|
||||
val sources = mutableListOf<ExtractorLink>()
|
||||
app.get(url, referer = referer).document.select("script").map { it.data() }
|
||||
.filter { it.contains("eval(function(p,a,c,k,e,d)") }
|
||||
.map { script ->
|
||||
val unpacked = if (script.contains("m3u8")) {
|
||||
getAndUnpack(script)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
if (script.contains("jwplayer(\"vplayer\").setup(")) {
|
||||
val data = script.substringAfter("sources: [")
|
||||
app.get(url, referer = referer).document.select("script").map { script ->
|
||||
if (script.data().contains("eval(function(p,a,c,k,e,d)")) {
|
||||
val subData =
|
||||
getAndUnpack(script.data()).substringAfter("sources: [")
|
||||
.substringBefore("],").replace("file", "\"file\"").trim()
|
||||
tryParseJson<File>(data)?.let {
|
||||
M3u8Helper.generateM3u8(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue