mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixes
This commit is contained in:
parent
8621808628
commit
2edee31504
2 changed files with 12 additions and 17 deletions
|
@ -1,32 +1,28 @@
|
||||||
package com.lagradost.cloudstream3.extractors
|
package com.lagradost.cloudstream3.extractors
|
||||||
|
|
||||||
|
import com.lagradost.cloudstream3.SubtitleFile
|
||||||
import com.lagradost.cloudstream3.utils.*
|
import com.lagradost.cloudstream3.utils.*
|
||||||
import com.lagradost.cloudstream3.app
|
import com.lagradost.cloudstream3.app
|
||||||
import com.lagradost.cloudstream3.utils.M3u8Helper.Companion.generateM3u8
|
import com.lagradost.cloudstream3.utils.M3u8Helper.Companion.generateM3u8
|
||||||
|
|
||||||
class SendvidHttps: Sendvid() {
|
|
||||||
override val mainUrl: String = "https://www.sendvid.com"
|
|
||||||
}
|
|
||||||
|
|
||||||
open class Sendvid : ExtractorApi() {
|
open class Sendvid : ExtractorApi() {
|
||||||
override var name = "Sendvid"
|
override var name = "Sendvid"
|
||||||
override val mainUrl = "https://sendvid.com"
|
override val mainUrl = "https://sendvid.com"
|
||||||
override val requiresReferer = false
|
override val requiresReferer = false
|
||||||
|
override suspend fun getUrl(
|
||||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink>? {
|
url: String,
|
||||||
|
referer: String?,
|
||||||
|
subtitleCallback: (SubtitleFile) -> Unit,
|
||||||
|
callback: (ExtractorLink) -> Unit
|
||||||
|
) {
|
||||||
val doc = app.get(url).document
|
val doc = app.get(url).document
|
||||||
val urlString = doc.select("head meta[property=og:video:secure_url]").attr("content")
|
val urlString = doc.select("head meta[property=og:video:secure_url]").attr("content")
|
||||||
val sources = mutableListOf<ExtractorLink>()
|
|
||||||
if (urlString.contains("m3u8")) {
|
if (urlString.contains("m3u8")) {
|
||||||
generateM3u8(
|
generateM3u8(
|
||||||
name,
|
name,
|
||||||
urlString,
|
urlString,
|
||||||
mainUrl,
|
mainUrl,
|
||||||
headers = app.get(url).headers.toMap()
|
).forEach(callback)
|
||||||
).forEach {link ->
|
|
||||||
sources.add(link)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return sources
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -266,7 +266,6 @@ val extractorApis: MutableList<ExtractorApi> = arrayListOf(
|
||||||
OkRuHttps(),
|
OkRuHttps(),
|
||||||
Okrulink(),
|
Okrulink(),
|
||||||
Sendvid(),
|
Sendvid(),
|
||||||
SendvidHttps(),
|
|
||||||
|
|
||||||
// dood extractors
|
// dood extractors
|
||||||
DoodCxExtractor(),
|
DoodCxExtractor(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue