mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
added Animixplay
This commit is contained in:
parent
40e1ddfc6e
commit
73b775d29f
7 changed files with 794 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -39,12 +39,13 @@ class IdlixProvider : MainAPI() {
|
|||
request: MainPageRequest
|
||||
): HomePageResponse {
|
||||
val url = request.data.split("?")
|
||||
val document = if (request.name == "Featured") {
|
||||
val nonPaged = request.name == "Featured" && page <= 1
|
||||
val document = if (nonPaged) {
|
||||
app.get(request.data).document
|
||||
} else {
|
||||
app.get("${url.first()}$page/?${url.lastOrNull()}").document
|
||||
}
|
||||
val home = (if (request.name == "Featured") {
|
||||
val home = (if (nonPaged) {
|
||||
document.select("div.items.featured article")
|
||||
} else {
|
||||
document.select("div.items.full article, div#archive-content article")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue