This commit is contained in:
jack 2023-11-01 03:00:38 +07:00
parent ee1af43cb0
commit c7ca6d2e3d
6 changed files with 6 additions and 18 deletions

View file

@ -1,7 +1,7 @@
import org.jetbrains.kotlin.konan.properties.Properties
// use an integer for version numbers
version = 25
version = 26
android {
defaultConfig {

View file

@ -106,7 +106,7 @@ object NineTv {
) {
val mainUrl = getBaseUrl(url)
val res = app.get(url, referer = referer)
val master = Regex("JScripts\\s*=\\s*'([^']+)").find(res.text)?.groupValues?.get(1)
val master = Regex("\\s*=\\s*'([^']+)").find(res.text)?.groupValues?.get(1)
val key = res.document.getKeys() ?: throw ErrorLoadingException("can't generate key")
val decrypt = AesHelper.cryptoAESHandler(master ?: return, key.toByteArray(), false)
?.replace("\\", "")