Fix various providers build

This commit is contained in:
Jace 2022-08-21 07:17:35 +08:00
parent d0eaa614a8
commit 30ba08bb47
9 changed files with 28 additions and 5 deletions

View file

@ -21,4 +21,6 @@ cloudstream {
// You can find a list of avaliable types here:
// https://recloudstream.github.io/cloudstream/html/app/com.lagradost.cloudstream3/-tv-type/index.html
tvTypes = listOf("NSFW")
iconUrl = "https://www.google.com/s2/favicons?domain=javsub.co&sz=%size%"
}

View file

@ -3,7 +3,6 @@ package com.jacekun
import android.util.Log
import com.fasterxml.jackson.annotation.JsonProperty
import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.extractors.FEmbed
import com.lagradost.cloudstream3.utils.AppUtils.toJson
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
import com.lagradost.cloudstream3.utils.ExtractorLink
@ -211,11 +210,12 @@ class JavSubProvider : MainAPI() {
private suspend fun extractStreamLink(
link: String,
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit)
: Boolean {
callback: (ExtractorLink) -> Unit) : Boolean {
if (link.isNotBlank()) {
when {
link.contains("watch-jav") -> {
/* //TODO: Add extractor
val extractor = FEmbed()
extractor.domainUrl = "embedsito.com"
extractor.getSafeUrl(
@ -225,6 +225,8 @@ class JavSubProvider : MainAPI() {
callback = callback
)
return true
*/
return false
}
else -> {
return loadExtractor(