Skip to content

Commit 1d1d936

Browse files
Last Sync: 2026-02-24 22:01 (Mobile)
1 parent ff3fcbc commit 1d1d936

5 files changed

Lines changed: 441 additions & 0 deletions

File tree

NekopoiProvider/build.gradle.kts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// use an integer for version numbers
2+
version = 1
3+
4+
5+
cloudstream {
6+
language = "id"
7+
// All of these properties are optional, you can safely remove them
8+
9+
description = "NekoPoi — Anime Sub Indo"
10+
authors = listOf("Miku")
11+
12+
/**
13+
* Status int as the following:
14+
* 0: Down
15+
* 1: Ok
16+
* 2: Slow
17+
* 3: Beta only
18+
* */
19+
status = 1 // will be 3 if unspecified
20+
tvTypes = listOf(
21+
"AnimeMovie",
22+
"Anime",
23+
"OVA",
24+
)
25+
26+
iconUrl = "https://www.google.com/s2/favicons?domain=nekopoi.care&sz=%size%"
27+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest package="com.nekopoi"/>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package com.nekopoi
2+
3+
import com.lagradost.cloudstream3.SubtitleFile
4+
import com.lagradost.cloudstream3.app
5+
import com.lagradost.cloudstream3.utils.ExtractorApi
6+
import com.lagradost.cloudstream3.utils.ExtractorLink
7+
import com.lagradost.cloudstream3.utils.INFER_TYPE
8+
import com.lagradost.cloudstream3.utils.Qualities
9+
import com.lagradost.cloudstream3.utils.newExtractorLink
10+
11+
open class PixelDrain : ExtractorApi() {
12+
override val name = "PixelDrain"
13+
override val mainUrl = "https://pixeldrain.com"
14+
override val requiresReferer = true
15+
16+
override suspend fun getUrl(
17+
url: String,
18+
referer: String?,
19+
subtitleCallback: (SubtitleFile) -> Unit,
20+
callback: (ExtractorLink) -> Unit
21+
) {
22+
val res = app.get(url, referer = referer).document
23+
val video = res.selectFirst("a#download-url")?.attr("href")
24+
callback.invoke(
25+
newExtractorLink(
26+
this.name,
27+
this.name,
28+
video ?: return,
29+
INFER_TYPE
30+
) {
31+
this.referer = "$mainUrl/"
32+
}
33+
)
34+
}
35+
}

0 commit comments

Comments
 (0)