Skip to content

Commit

Permalink
test to see what it looks like
Browse files Browse the repository at this point in the history
  • Loading branch information
owencz1998 authored Dec 6, 2024
1 parent f3d96d9 commit 1451cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pornhoarder/src/main/kotlin/com/xxx/PornhoarderPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ class PornhoarderPlugin : MainAPI() {
val body = getRequestBody("",request.data == "Latest",page)
val document = app.post(ajaxUrl, requestBody = body).document
val responseList = document.select(".video article").mapNotNull { it.toSearchResult() }
return newHomePageResponse(HomePageList(request.name, responseList, isHorizontalImages = true),hasNext = true)
return newHomePageResponse(HomePageList(request.name, responseList, isHorizontalImages = false),hasNext = true)

}
else
{
val document = app.get("$mainUrl${request.data}?page=$page").document
val responseList = document.select(".video article").mapNotNull { it.toSearchResult() }
return newHomePageResponse(HomePageList(request.name, responseList, isHorizontalImages = true),hasNext = true)
return newHomePageResponse(HomePageList(request.name, responseList, isHorizontalImages = false),hasNext = true)
}
}

Expand Down

0 comments on commit 1451cde

Please sign in to comment.