File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <manifest package =" com.nekopoi" />
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments