Fix 9anime Key (#721)

This commit is contained in:
Samfun75
2022-08-04 11:23:27 +03:00
committed by GitHub
parent 491a39588c
commit b81aaae2bb
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = '9anime'
pkgNameSuffix = 'en.nineanime'
extClass = '.NineAnime'
extVersionCode = 15
extVersionCode = 16
libVersion = '13'
}

View File

@ -281,7 +281,7 @@ class NineAnime : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
screen.addPreference(videoLanguagePref)
}
private fun encodeVrf(id: String) = encode(encrypt(cipher(encode(id))).replace("""=+$""".toRegex(), ""))
private fun encodeVrf(id: String) = encode(encrypt(cipher(encode(id))))
private fun decodeVrf(text: String) = decode(cipher(decrypt(text)))
@ -375,4 +375,5 @@ class NineAnime : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}
private const val nineAnimeKey = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
private const val cipherKey = "rTKp3auwu0ULA6II"
private const val cipherKey = "kMXzgyNzT3k5dYab"
// credit goes to https://github.com/saikou-app/saikou/