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=javfree.sh&sz=%size%"
}

View File

@ -27,7 +27,9 @@ class JavFreeProvider : MainAPI() {
@JsonProperty("active") val active: Int?
)
fun String.cleanText() : String = this.trim().removePrefix("Watch JAV Free").removeSuffix("HD Free Online on JAVFree.SH").trim()
fun String.cleanText() : String = this.trim().removePrefix("Watch JAV Free")
.removeSuffix("HD Free Online on JAVFree.SH").trim()
.removePrefix("Watch JAV").trim()
override suspend fun getMainPage(
page: Int,
@ -149,7 +151,6 @@ class JavFreeProvider : MainAPI() {
callback: (ExtractorLink) -> Unit
): Boolean {
var success = false
try {
// GET request to: https://player.javfree.sh/stream/687234424271726c
val id = data.substring(data.indexOf("#")).substring(1)

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(

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=xvideos.com&sz=%size%"
}

Binary file not shown.

BIN
cs3/JavSubProvider.cs3 Normal file

Binary file not shown.

View File

@ -1,7 +1,9 @@
[
{
"iconUrl": "https://www.google.com/s2/favicons?domain=javfree.sh&sz=%size%",
"apiVersion": 1,
"repositoryUrl": "https://github.com/Jacekun/cs3xxx-repo",
"fileSize": 11551,
"status": 1,
"authors": [
"Jace"
@ -16,8 +18,10 @@
"name": "JavFreeProvider"
},
{
"iconUrl": "https://www.google.com/s2/favicons?domain=javsub.co&sz=%size%",
"apiVersion": 1,
"repositoryUrl": "https://github.com/Jacekun/cs3xxx-repo",
"fileSize": 13987,
"status": 1,
"authors": [
"Jace"
@ -32,8 +36,10 @@
"name": "JavSubProvider"
},
{
"iconUrl": "https://www.google.com/s2/favicons?domain=xvideos.com&sz=%size%",
"apiVersion": 1,
"repositoryUrl": "https://github.com/Jacekun/cs3xxx-repo",
"fileSize": 11939,
"status": 1,
"authors": [
"Jace"

8
cs3/repo.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "NSFW Providers",
"description": "For the coomers and degenerates",
"manifestVersion": 1,
"pluginLists": [
"https://raw.githubusercontent.com/Jacekun/cs3xxx-repo/dev/cs3/plugins.json"
]
}