43 lines
1.2 KiB
Kotlin
43 lines
1.2 KiB
Kotlin
package com.hexated
|
|
|
|
import com.lagradost.cloudstream3.SubtitleFile
|
|
import com.lagradost.cloudstream3.app
|
|
import com.lagradost.cloudstream3.extractors.XStreamCdn
|
|
import com.lagradost.cloudstream3.utils.ExtractorApi
|
|
import com.lagradost.cloudstream3.utils.ExtractorLink
|
|
import com.lagradost.cloudstream3.utils.Qualities
|
|
import java.net.URI
|
|
|
|
class Suzihaza: XStreamCdn() {
|
|
override val name: String = "Suzihaza"
|
|
override val mainUrl: String = "https://suzihaza.com"
|
|
}
|
|
|
|
open class Wibufile : ExtractorApi() {
|
|
override val name: String = "Wibufile"
|
|
override val mainUrl: String = "https://wibufile.com"
|
|
override val requiresReferer = false
|
|
|
|
override suspend fun getUrl(
|
|
url: String,
|
|
referer: String?,
|
|
subtitleCallback: (SubtitleFile) -> Unit,
|
|
callback: (ExtractorLink) -> Unit
|
|
) {
|
|
val res = app.get(url).text
|
|
val video = Regex("src: ['\"](.*?)['\"]").find(res)?.groupValues?.get(1)
|
|
|
|
callback.invoke(
|
|
ExtractorLink(
|
|
name,
|
|
name,
|
|
video ?: return,
|
|
"$mainUrl/",
|
|
Qualities.Unknown.value,
|
|
URI(url).path.endsWith(".m3u8")
|
|
)
|
|
)
|
|
|
|
}
|
|
|
|
} |