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
1 changed files with 1 additions and 1 deletions

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))