mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Old API support for YTV
This commit is contained in:
parent
aecd08db25
commit
2456191182
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
|||
import com.lagradost.cloudstream3.network.CloudflareKiller
|
||||
import org.jsoup.nodes.Element
|
||||
import android.util.Log
|
||||
import java.util.Base64
|
||||
import android.util.Base64
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.parseJson
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||
import com.lagradost.cloudstream3.utils.Qualities
|
||||
|
@ -29,7 +29,7 @@ class YacienTV : MainAPI() {
|
|||
|
||||
fun decrypt(enc: String, headerstr: String): String {
|
||||
var key = mainkey + headerstr
|
||||
val decodedBytes = Base64.getDecoder().decode(enc.toByteArray())
|
||||
val decodedBytes = Base64.decode(enc, Base64.DEFAULT)
|
||||
val encString = String(decodedBytes)
|
||||
var result = ""
|
||||
for (i in encString.indices) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue