mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
f687508521
Co-authored-by: ghost <ghost@gmail.com>
25 lines
919 B
Kotlin
25 lines
919 B
Kotlin
// ! Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
||
|
||
package com.lagradost.cloudstream3.extractors
|
||
|
||
import com.lagradost.cloudstream3.*
|
||
import com.lagradost.cloudstream3.utils.*
|
||
|
||
open class PixelDrain : ExtractorApi() {
|
||
override val name = "PixelDrain"
|
||
override val mainUrl = "https://pixeldrain.com"
|
||
override val requiresReferer = true
|
||
|
||
override suspend fun getUrl(url: String, referer: String?, subtitleCallback: (SubtitleFile) -> Unit, callback: (ExtractorLink) -> Unit) {
|
||
val mId = Regex("/([ul]/[\\da-zA-Z\\-]+)(?:\\?download)?").find(url)?.groupValues?.get(1)?.split("/")
|
||
callback.invoke(
|
||
ExtractorLink(
|
||
this.name,
|
||
this.name,
|
||
"$mainUrl/api/file/${mId?.last() ?: return}?download",
|
||
url,
|
||
Qualities.Unknown.value,
|
||
)
|
||
)
|
||
}
|
||
} |