[Feature] Added VIP HD links to all in preparation for NNN

This commit is contained in:
Jace 2022-11-03 07:04:32 +08:00
parent 2d5ab87eeb
commit 8d94a47bdd
11 changed files with 131 additions and 13 deletions

View file

@ -4,7 +4,6 @@ import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.mvvm.logError
import com.lagradost.cloudstream3.utils.*
class XvideosProvider : MainAPI() {
private val globalTvType = TvType.NSFW
override var mainUrl = "https://www.xvideos.com"
@ -134,6 +133,18 @@ class XvideosProvider : MainAPI() {
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
): Boolean {
//NNN
callback.invoke(
ExtractorLink(
source = this.name,
name = "${this.name} VIP HD",
url = "https://biblescreen.faithlifecdn.com/biblescreen/bibleScreen/playlist.m3u8",//"https://files.catbox.moe/9czzyk.mp4",
referer = data,
quality = Qualities.P2160.value,
isM3u8 = true
)
)
app.get(data).document.select("script").apmap { script ->
if (script.data().contains("HTML5Player")) {
val extractedlink = script.data().substringAfter(".setVideoHLS('")