Fix NHentai source only showing first page.

This commit is contained in:
NerdNumber9 2017-03-16 22:54:55 -04:00
parent e161e5d30d
commit 5c671de29e

View File

@ -94,7 +94,7 @@ class NHentai(context: Context) : HttpSource() {
}
val numPages = res.get("num_pages")?.int
if(results != null && numPages != null)
return MangasPage(results, numPages < response.request().tag() as Int)
return MangasPage(results, numPages > response.request().tag() as Int)
} else {
Timber.w("An error occurred while performing the search: $error")
}