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'
|
extName = 'Aniflix'
|
||||||
pkgNameSuffix = 'de.aniflix'
|
pkgNameSuffix = 'de.aniflix'
|
||||||
extClass = '.Aniflix'
|
extClass = '.Aniflix'
|
||||||
extVersionCode = 14
|
extVersionCode = 15
|
||||||
libVersion = '12'
|
libVersion = '12'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,9 +23,10 @@ class StreamlareExtractor(private val client: OkHttpClient) {
|
|||||||
|
|
||||||
playlist.substringAfter("\"label\":\"").split("\"label\":\"").forEach {
|
playlist.substringAfter("\"label\":\"").split("\"label\":\"").forEach {
|
||||||
val quality = it.substringAfter("\"label\":\"").substringBefore("\",") + ", ${stream.lang}"
|
val quality = it.substringAfter("\"label\":\"").substringBefore("\",") + ", ${stream.lang}"
|
||||||
val videoUrl =
|
val token = it.substringAfter("\"file\":\"https:\\/\\/larecontent.com\\/video?token=")
|
||||||
"https://larecontent.com/video?token=" + it.substringAfter("\"file\":\"https:\\/\\/larecontent.com\\/video?token=")
|
.substringBefore("\",")
|
||||||
.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))))
|
videoList.addAll((listOf(Video(videoUrl, quality, videoUrl, null))))
|
||||||
}
|
}
|
||||||
return videoList
|
return videoList
|
||||||
|
Reference in New Issue
Block a user