fixed YugenAnime episode

This commit is contained in:
hexated 2023-01-04 11:39:43 +07:00
parent 3293554df0
commit 6f1c38b83a

View file

@ -98,7 +98,7 @@ class YugenAnime : MainAPI() {
val trailer = document.selectFirst("iframe.lozad.video")?.attr("src")
val episodes = mutableListOf<Episode>()
for(page in 1..30) {
for(page in 1..50) {
val doc = app.get("${url}watch/?page=$page").document
val currentPage = doc.select("ul.pagination div.btn.btn-default").text().toIntOrNull() ?: 1
if(page > currentPage) break