KickassAnime: check gogo url structure (#772)

This commit is contained in:
Samfun75
2022-08-15 17:47:34 +03:00
committed by GitHub
parent a25982e1b5
commit a2c2917c43
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'KickAssAnime'
pkgNameSuffix = 'en.kickassanime'
extClass = '.KickAssAnime'
extVersionCode = 3
extVersionCode = 4
libVersion = '13'
}

View File

@ -202,7 +202,10 @@ class KickAssAnime : ConfigurableAnimeSource, AnimeHttpSource() {
}
private fun extractGogoVideo(link: String): List<Video> {
val url = "https:" + decode(link).substringAfter("data=").substringBefore("&vref")
var url = decode(link).substringAfter("data=").substringBefore("&vref")
if (url.startsWith("https").not()) {
url = "https:" + url
}
val videoList = mutableListOf<Video>()
val document = client.newCall(GET(url)).execute().asJsoup()