better order source in Kickassanime

This commit is contained in:
hexated 2023-01-24 08:05:19 +07:00
parent 4790518a13
commit 1a80c14c94
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 5
version = 6
cloudstream {

View file

@ -103,7 +103,7 @@ object KickassanimeExtractor : Kickassanime() {
data = data.base64Decode()
}
AppUtils.tryParseJson<SapphireSources>(data).let { res ->
res?.streams?.filter { it.format == "adaptive_hls" }?.map { source ->
res?.streams?.filter { it.format == "adaptive_hls" }?.reversed()?.map { source ->
val name = if(isDub) source.audio_lang else source.hardsub_lang.orEmpty().ifEmpty { "raw" }
M3u8Helper.generateM3u8(
"Crunchyroll [$name]",