Anflix Streamlare Update (#644)
* Anflix Streamlare Update Streamlist now contains all resolutions of Streamlare * Aniflix Streamlare update Video shouldn't stop anymore after a while of watching * Update build.gradle
This commit is contained in:
@ -6,7 +6,7 @@ ext {
|
||||
extName = 'Aniflix'
|
||||
pkgNameSuffix = 'de.aniflix'
|
||||
extClass = '.Aniflix'
|
||||
extVersionCode = 14
|
||||
extVersionCode = 15
|
||||
libVersion = '12'
|
||||
}
|
||||
|
||||
|
@ -23,9 +23,10 @@ class StreamlareExtractor(private val client: OkHttpClient) {
|
||||
|
||||
playlist.substringAfter("\"label\":\"").split("\"label\":\"").forEach {
|
||||
val quality = it.substringAfter("\"label\":\"").substringBefore("\",") + ", ${stream.lang}"
|
||||
val videoUrl =
|
||||
"https://larecontent.com/video?token=" + it.substringAfter("\"file\":\"https:\\/\\/larecontent.com\\/video?token=")
|
||||
.substringBefore("\",")
|
||||
val token = it.substringAfter("\"file\":\"https:\\/\\/larecontent.com\\/video?token=")
|
||||
.substringBefore("\",")
|
||||
val response = client.newCall(POST("https://larecontent.com/video?token=$token")).execute()
|
||||
val videoUrl = response.request.url.toString()
|
||||
videoList.addAll((listOf(Video(videoUrl, quality, videoUrl, null))))
|
||||
}
|
||||
return videoList
|
||||
|
Reference in New Issue
Block a user