This commit is contained in:
parent
dc592f3a7e
commit
d70e1fe173
2 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 7
|
||||
version = 8
|
||||
|
||||
dependencies {
|
||||
implementation("com.google.code.gson:gson:2.9.0")
|
||||
|
|
|
@ -244,9 +244,12 @@ class UASerialsProProvider : MainAPI() {
|
|||
|
||||
Gson().fromJson<List<DecodedJSON>>(decryptData, listDecodedJSONModel)[0]
|
||||
.seasons[dataList[0].toInt()].episodes[dataList[1].toInt()].sounds.forEach { episode ->
|
||||
val m3u8Url = app.get(episode.url).document.select("script").html()
|
||||
.substringAfterLast("file: \"")
|
||||
.substringBefore("\",")
|
||||
val m3u8Url = app.get(episode.url).document.select("script").html()
|
||||
.let {
|
||||
val regex = """file:\s*"(.*?)"""".toRegex()
|
||||
val matchResult = regex.find(it)
|
||||
matchResult?.groups?.get(1)?.value.toString()
|
||||
}
|
||||
M3u8Helper.generateM3u8(
|
||||
source = episode.title,
|
||||
streamUrl = m3u8Url.replace("https://", "http://"),
|
||||
|
|
Loading…
Reference in a new issue