forked from recloudstream/cloudstream
removed unnecessary check from tenshiprovider
This commit is contained in:
parent
4d40e1d9b2
commit
0c97ad0458
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue