From 3cbd01098bc5a5b4551688d9f30836897186948f Mon Sep 17 00:00:00 2001 From: Dark25 Date: Mon, 19 Aug 2024 21:45:49 +0200 Subject: [PATCH] Fix(Lib/Voe/Chillx): Update extractors --- .../lib/chillxextractor/ChillxExtractor.kt | 16 +++++++++++++++- .../tachiyomi/lib/voeextractor/VoeExtractor.kt | 12 ++++++++---- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/lib/chillx-extractor/src/main/java/eu/kanade/tachiyomi/lib/chillxextractor/ChillxExtractor.kt b/lib/chillx-extractor/src/main/java/eu/kanade/tachiyomi/lib/chillxextractor/ChillxExtractor.kt index 581c048655..2144180487 100644 --- a/lib/chillx-extractor/src/main/java/eu/kanade/tachiyomi/lib/chillxextractor/ChillxExtractor.kt +++ b/lib/chillx-extractor/src/main/java/eu/kanade/tachiyomi/lib/chillxextractor/ChillxExtractor.kt @@ -5,6 +5,8 @@ import eu.kanade.tachiyomi.animesource.model.Video import eu.kanade.tachiyomi.lib.cryptoaes.CryptoAES.decryptWithSalt import eu.kanade.tachiyomi.lib.playlistutils.PlaylistUtils import eu.kanade.tachiyomi.network.GET +import eu.kanade.tachiyomi.util.parseAs +import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import kotlinx.serialization.json.Json @@ -27,6 +29,7 @@ class ChillxExtractor(private val client: OkHttpClient, private val headers: Hea // matches "[language]https://...," private val REGEX_SUBS by lazy { Regex("""\[(.*?)\](.*?)"?\,""") } + private const val KEY_SOURCE = "https://rowdy-avocado.github.io/multi-keys/" } fun videoFromUrl(url: String, referer: String, prefix: String = "Chillx - "): List