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:
LuftVerbot
2022-07-11 12:40:17 +02:00
committed by GitHub
parent 640c530d41
commit 9df252a816
2 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Aniflix'
pkgNameSuffix = 'de.aniflix'
extClass = '.Aniflix'
extVersionCode = 14
extVersionCode = 15
libVersion = '12'
}

View File

@ -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