From 0c97ad04580932081ce294514202f90ee846db62 Mon Sep 17 00:00:00 2001 From: Arjix <53124886+ArjixWasTaken@users.noreply.github.com> Date: Fri, 23 Jul 2021 18:08:51 +0300 Subject: [PATCH] removed unnecessary check from tenshiprovider --- .../com/lagradost/cloudstream3/animeproviders/TenshiProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/TenshiProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/TenshiProvider.kt index 6c5cfc6e..83c28eb3 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/TenshiProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/TenshiProvider.kt @@ -165,7 +165,7 @@ class TenshiProvider : MainAPI() { var document = Jsoup.parse(response.text) val returnValue = parseSearchPage(document) - while (document.select("""a.page-link[rel="next"]""") != null && !document.select("""a.page-link[rel="next"]""").isEmpty()) { + while (!document.select("""a.page-link[rel="next"]""").isEmpty()) { val link = document.select("""a.page-link[rel="next"]""") if (link != null && !link.isEmpty()) { response = khttp.get(link[0].attr("href"), cookies=mapOf("loop-view" to "thumb"))