mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fix
This commit is contained in:
parent
8a2004fa66
commit
d92e7093fc
1 changed files with 3 additions and 5 deletions
|
@ -26,11 +26,11 @@ open class StreamoUpload : ExtractorApi() {
|
|||
for (script in scriptElements) {
|
||||
if (script.data().contains("eval(function(p,a,c,k,e,d)")) {
|
||||
val data = getAndUnpack(script.data()).substringAfter("sources: [")
|
||||
.substringBefore("],").replace("file", "\"file\"") .trim()
|
||||
tryParseJson<List<File>>(data)?.let {
|
||||
.substringBefore("],").replace("file", "\"file\"").trim()
|
||||
tryParseJson<List<File>>(data)?.let {
|
||||
M3u8Helper.generateM3u8(
|
||||
name,
|
||||
it.file,
|
||||
it.map { file -> file.file },
|
||||
"$mainUrl/",
|
||||
).forEach { m3uData -> sources.add(m3uData) }
|
||||
}
|
||||
|
@ -42,6 +42,4 @@ open class StreamoUpload : ExtractorApi() {
|
|||
private data class File(
|
||||
@JsonProperty("file") val file: String,
|
||||
)
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue