removed unnecessary check from tenshiprovider

This commit is contained in:
Arjix 2021-07-23 18:08:51 +03:00 committed by GitHub
parent 4d40e1d9b2
commit 0c97ad0458
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,7 +165,7 @@ class TenshiProvider : MainAPI() {
var document = Jsoup.parse(response.text) var document = Jsoup.parse(response.text)
val returnValue = parseSearchPage(document) 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"]""") val link = document.select("""a.page-link[rel="next"]""")
if (link != null && !link.isEmpty()) { if (link != null && !link.isEmpty()) {
response = khttp.get(link[0].attr("href"), cookies=mapOf("loop-view" to "thumb")) response = khttp.get(link[0].attr("href"), cookies=mapOf("loop-view" to "thumb"))