This commit is contained in:
Thorodinson1 2023-07-19 20:51:59 +05:30
parent 5a3ceb9b64
commit 614974f362

View file

@ -24,7 +24,11 @@ open class StreamoUpload : ExtractorApi() {
val response = app.get(url, referer = referer)
val scriptElements = response.document.select("script").map { script ->
if (script.data().contains("eval(function(p,a,c,k,e,d)")) {
val data = getAndUnpack(script.data()).substringAfter("sources:[").substringBefore("],").replace("file", "\"file\"").trim()
val data = getAndUnpack(script.data())
.substringAfter("sources:[")
.substringBefore("],")
.replace("file", "\"file\"")
.trim()
tryParseJson<File>(data)?.let {
M3u8Helper.generateM3u8(
name,
@ -40,6 +44,4 @@ open class StreamoUpload : ExtractorApi() {
private data class File(
@JsonProperty("file") val file: String,
)
}