mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
[Kickassanime] fixed missing source
This commit is contained in:
parent
6e25ed7485
commit
989937b0a9
2 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -146,7 +146,7 @@ class Kickassanime : MainAPI() {
|
|||
tryParseJson<Resources>("{${Regex("(\"episode\":.*),\"wkl").find(it)?.groupValues?.get(1)}}")
|
||||
}?.let { server ->
|
||||
listOf(
|
||||
server.episode?.link1,
|
||||
server.episode?.link1.orEmpty().ifEmpty { server.episode?.link4 },
|
||||
server.ext_servers?.find { it.name == "Vidstreaming" }?.link
|
||||
)
|
||||
}?.filterNotNull()
|
||||
|
@ -269,9 +269,9 @@ class Kickassanime : MainAPI() {
|
|||
callback: (ExtractorLink) -> Unit,
|
||||
) {
|
||||
var data = app.get("$url&action=config", referer = url).text
|
||||
for(i in 1..20) {
|
||||
data = data.decodeBase64()
|
||||
while(true) {
|
||||
if(data.startsWith("{")) break
|
||||
data = data.decodeBase64()
|
||||
}
|
||||
tryParseJson<SapphireSources>(data).let { res ->
|
||||
res?.streams?.filter { it.format == "adaptive_hls" }?.map { source ->
|
||||
|
@ -480,6 +480,7 @@ class Kickassanime : MainAPI() {
|
|||
|
||||
data class Eps(
|
||||
@JsonProperty("link1") val link1: String? = null,
|
||||
@JsonProperty("link4") val link4: String? = null,
|
||||
)
|
||||
|
||||
data class Resources(
|
||||
|
|
Loading…
Reference in a new issue