From 72a2ff930cd2a402d8b9b32175898bc10dc65bdf Mon Sep 17 00:00:00 2001 From: Arjix <53124886+ArjixWasTaken@users.noreply.github.com> Date: Sun, 3 Oct 2021 00:12:01 +0300 Subject: [PATCH] revert --- .../cloudstream3/animeproviders/AnimePaheProvider.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/AnimePaheProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/AnimePaheProvider.kt index 39a4ca05..f598227f 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/AnimePaheProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/AnimePaheProvider.kt @@ -455,7 +455,7 @@ class AnimePaheProvider : MainAPI() { } var responseCode = 302 - var adflyContent: response? = null + var adflyContent: Response? = null var tries = 0 while (responseCode != 200 && tries < 20) { @@ -465,7 +465,7 @@ class AnimePaheProvider : MainAPI() { allowRedirects = false ) cookies = cookies + adflyContent.cookies - responseCode = adflyContent.status + responseCode = adflyContent.code ++tries } if (tries > 19) { @@ -483,7 +483,7 @@ class AnimePaheProvider : MainAPI() { val decrypted = decrypt(fullString, key, v1.toInt(), v2.toInt()) val uri = KWIK_D_URL.find(decrypted)!!.destructured.component1() val tok = KWIK_D_TOKEN.find(decrypted)!!.destructured.component1() - var content: response? = null + var content: Response? = null var code = 419 var tries = 0 @@ -496,7 +496,7 @@ class AnimePaheProvider : MainAPI() { headers = mapOf("referer" to fContent.url), cookies = fContent.cookies ) - code = content.status + code = content.code ++tries } if (tries > 19) {