cloudstream-extensions-hexated/Gomov/src/main/kotlin/com/hexated/Extractors.kt

90 lines
2.5 KiB
Kotlin
Raw Normal View History

2023-07-20 08:44:27 +00:00
package com.hexated
2023-09-26 05:45:33 +00:00
import com.lagradost.cloudstream3.SubtitleFile
2023-10-08 13:20:06 +00:00
import com.lagradost.cloudstream3.apmap
2023-09-26 05:45:33 +00:00
import com.lagradost.cloudstream3.app
2023-10-08 13:20:06 +00:00
import com.lagradost.cloudstream3.base64Decode
2023-09-01 22:48:35 +00:00
import com.lagradost.cloudstream3.extractors.*
2023-10-08 13:20:06 +00:00
import com.lagradost.cloudstream3.utils.ExtractorApi
2023-09-26 05:45:33 +00:00
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.M3u8Helper
2023-10-08 13:20:06 +00:00
import com.lagradost.cloudstream3.utils.loadExtractor
2023-09-01 22:48:35 +00:00
2023-10-08 13:20:06 +00:00
open class Uplayer : ExtractorApi() {
override val name = "Uplayer"
override val mainUrl = "https://uplayer.xyz"
override val requiresReferer = true
override suspend fun getUrl(
url: String,
referer: String?,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
) {
val res = app.get(url,referer=referer).text
val m3u8 = Regex("file:\\s*\"(.*?m3u8.*?)\"").find(res)?.groupValues?.getOrNull(1)
M3u8Helper.generateM3u8(
name,
m3u8 ?: return,
mainUrl
).forEach(callback)
}
}
open class Kotakajaib : ExtractorApi() {
override val name = "Kotakajaib"
override val mainUrl = "https://kotakajaib.me"
override val requiresReferer = true
override suspend fun getUrl(
url: String,
referer: String?,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
) {
app.get(url,referer=referer).document.select("ul#dropdown-server li a").apmap {
loadExtractor(base64Decode(it.attr("data-frame")), "$mainUrl/", subtitleCallback, callback)
}
}
}
2023-09-01 22:48:35 +00:00
class Doods : DoodLaExtractor() {
override var name = "Doods"
override var mainUrl = "https://doods.pro"
}
2023-07-20 08:44:27 +00:00
class Dutamovie21 : StreamSB() {
override var name = "Dutamovie21"
override var mainUrl = "https://dutamovie21.xyz"
}
2023-08-23 22:12:42 +00:00
class FilelionsTo : Filesim() {
2023-07-20 08:44:27 +00:00
override val name = "Filelions"
override var mainUrl = "https://filelions.to"
}
2023-09-28 14:05:17 +00:00
class FilelionsOn : Filesim() {
override val name = "Filelions"
override var mainUrl = "https://filelions.online"
}
2023-08-23 22:12:42 +00:00
class Lylxan : Filesim() {
override val name = "Lylxan"
override var mainUrl = "https://lylxan.com"
}
2023-08-19 01:01:42 +00:00
class Embedwish : Filesim() {
override val name = "Embedwish"
override var mainUrl = "https://embedwish.com"
}
2023-07-20 08:44:27 +00:00
class Likessb : StreamSB() {
override var name = "Likessb"
override var mainUrl = "https://likessb.com"
}
class DbGdriveplayer : Gdriveplayer() {
override var mainUrl = "https://database.gdriveplayer.us"
}