mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
35 lines
No EOL
1.1 KiB
Kotlin
35 lines
No EOL
1.1 KiB
Kotlin
package com.lagradost.cloudstream3.extractors
|
|
|
|
import com.lagradost.cloudstream3.SubtitleFile
|
|
import com.lagradost.cloudstream3.app
|
|
import com.lagradost.cloudstream3.utils.ExtractorApi
|
|
import com.lagradost.cloudstream3.utils.ExtractorLink
|
|
import com.lagradost.cloudstream3.utils.INFER_TYPE
|
|
import com.lagradost.cloudstream3.utils.Qualities
|
|
|
|
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,
|
|
type = INFER_TYPE
|
|
)
|
|
)
|
|
}
|
|
} |