Update WcoProvider.kt

This commit is contained in:
Arjix 2021-07-23 15:15:04 +03:00 committed by GitHub
parent 73adb9894d
commit be714a9a26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ class WcoProvider : MainAPI() {
while (!document.select(".pagination").isEmpty()) {
val link = document.select("a.page-link[rel=\"next\"]")
if (link != null && !link.isEmpty()) {
if (!link.isEmpty()) {
val extraResponse = khttp.get(fixUrl(link[0].attr("href")))
document = Jsoup.parse(extraResponse.text)
returnValue.addAll(parseSearchPage(document))