mirror of
https://github.com/Jacekun/cs3xxx-repo.git
synced 2024-08-14 23:57:09 +00:00
Fix various providers build
This commit is contained in:
parent
d0eaa614a8
commit
30ba08bb47
9 changed files with 28 additions and 5 deletions
|
@ -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%"
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue