mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fixed Vido extractor (for MesFilms and Wiflix)
This commit is contained in:
parent
6e0ecfa1fb
commit
5174078798
1 changed files with 1 additions and 12 deletions
|
@ -12,18 +12,7 @@ class Vido : ExtractorApi() {
|
|||
override val requiresReferer = true
|
||||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink>? {
|
||||
val methode = if (url.contains("embed")) {
|
||||
app.get(url) // french stream
|
||||
} else {
|
||||
val code = url.substringAfterLast("/")
|
||||
val data = mapOf(
|
||||
"op" to "embed",
|
||||
"file_code" to code,
|
||||
"&auto" to "1"
|
||||
|
||||
)
|
||||
app.post("https://vido.lol/dl", referer = url, data = data) // wiflix
|
||||
}
|
||||
val methode = app.get(url.replace("/e/", "/embed-")) // fix wiflix and mesfilms
|
||||
with(methode) {
|
||||
if (!methode.isSuccessful) return null
|
||||
//val quality = unpackedText.lowercase().substringAfter(" height=").substringBefore(" ").toIntOrNull()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue