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:
|
// You can find a list of avaliable types here:
|
||||||
// https://recloudstream.github.io/cloudstream/html/app/com.lagradost.cloudstream3/-tv-type/index.html
|
// https://recloudstream.github.io/cloudstream/html/app/com.lagradost.cloudstream3/-tv-type/index.html
|
||||||
tvTypes = listOf("NSFW")
|
tvTypes = listOf("NSFW")
|
||||||
|
|
||||||
|
iconUrl = "https://www.google.com/s2/favicons?domain=javfree.sh&sz=%size%"
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,9 @@ class JavFreeProvider : MainAPI() {
|
||||||
@JsonProperty("active") val active: Int?
|
@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(
|
override suspend fun getMainPage(
|
||||||
page: Int,
|
page: Int,
|
||||||
|
@ -149,7 +151,6 @@ class JavFreeProvider : MainAPI() {
|
||||||
callback: (ExtractorLink) -> Unit
|
callback: (ExtractorLink) -> Unit
|
||||||
): Boolean {
|
): Boolean {
|
||||||
|
|
||||||
var success = false
|
|
||||||
try {
|
try {
|
||||||
// GET request to: https://player.javfree.sh/stream/687234424271726c
|
// GET request to: https://player.javfree.sh/stream/687234424271726c
|
||||||
val id = data.substring(data.indexOf("#")).substring(1)
|
val id = data.substring(data.indexOf("#")).substring(1)
|
||||||
|
|
|
@ -21,4 +21,6 @@ cloudstream {
|
||||||
// You can find a list of avaliable types here:
|
// You can find a list of avaliable types here:
|
||||||
// https://recloudstream.github.io/cloudstream/html/app/com.lagradost.cloudstream3/-tv-type/index.html
|
// https://recloudstream.github.io/cloudstream/html/app/com.lagradost.cloudstream3/-tv-type/index.html
|
||||||
tvTypes = listOf("NSFW")
|
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 android.util.Log
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty
|
import com.fasterxml.jackson.annotation.JsonProperty
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.extractors.FEmbed
|
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
||||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||||
|
@ -211,11 +210,12 @@ class JavSubProvider : MainAPI() {
|
||||||
private suspend fun extractStreamLink(
|
private suspend fun extractStreamLink(
|
||||||
link: String,
|
link: String,
|
||||||
subtitleCallback: (SubtitleFile) -> Unit,
|
subtitleCallback: (SubtitleFile) -> Unit,
|
||||||
callback: (ExtractorLink) -> Unit)
|
callback: (ExtractorLink) -> Unit) : Boolean {
|
||||||
: Boolean {
|
|
||||||
if (link.isNotBlank()) {
|
if (link.isNotBlank()) {
|
||||||
when {
|
when {
|
||||||
link.contains("watch-jav") -> {
|
link.contains("watch-jav") -> {
|
||||||
|
/* //TODO: Add extractor
|
||||||
val extractor = FEmbed()
|
val extractor = FEmbed()
|
||||||
extractor.domainUrl = "embedsito.com"
|
extractor.domainUrl = "embedsito.com"
|
||||||
extractor.getSafeUrl(
|
extractor.getSafeUrl(
|
||||||
|
@ -225,6 +225,8 @@ class JavSubProvider : MainAPI() {
|
||||||
callback = callback
|
callback = callback
|
||||||
)
|
)
|
||||||
return true
|
return true
|
||||||
|
*/
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
return loadExtractor(
|
return loadExtractor(
|
||||||
|
|
|
@ -21,4 +21,6 @@ cloudstream {
|
||||||
// You can find a list of avaliable types here:
|
// You can find a list of avaliable types here:
|
||||||
// https://recloudstream.github.io/cloudstream/html/app/com.lagradost.cloudstream3/-tv-type/index.html
|
// https://recloudstream.github.io/cloudstream/html/app/com.lagradost.cloudstream3/-tv-type/index.html
|
||||||
tvTypes = listOf("NSFW")
|
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
BIN
cs3/JavSubProvider.cs3
Normal file
Binary file not shown.
|
@ -1,7 +1,9 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
"iconUrl": "https://www.google.com/s2/favicons?domain=javfree.sh&sz=%size%",
|
||||||
"apiVersion": 1,
|
"apiVersion": 1,
|
||||||
"repositoryUrl": "https://github.com/Jacekun/cs3xxx-repo",
|
"repositoryUrl": "https://github.com/Jacekun/cs3xxx-repo",
|
||||||
|
"fileSize": 11551,
|
||||||
"status": 1,
|
"status": 1,
|
||||||
"authors": [
|
"authors": [
|
||||||
"Jace"
|
"Jace"
|
||||||
|
@ -16,8 +18,10 @@
|
||||||
"name": "JavFreeProvider"
|
"name": "JavFreeProvider"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"iconUrl": "https://www.google.com/s2/favicons?domain=javsub.co&sz=%size%",
|
||||||
"apiVersion": 1,
|
"apiVersion": 1,
|
||||||
"repositoryUrl": "https://github.com/Jacekun/cs3xxx-repo",
|
"repositoryUrl": "https://github.com/Jacekun/cs3xxx-repo",
|
||||||
|
"fileSize": 13987,
|
||||||
"status": 1,
|
"status": 1,
|
||||||
"authors": [
|
"authors": [
|
||||||
"Jace"
|
"Jace"
|
||||||
|
@ -32,8 +36,10 @@
|
||||||
"name": "JavSubProvider"
|
"name": "JavSubProvider"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"iconUrl": "https://www.google.com/s2/favicons?domain=xvideos.com&sz=%size%",
|
||||||
"apiVersion": 1,
|
"apiVersion": 1,
|
||||||
"repositoryUrl": "https://github.com/Jacekun/cs3xxx-repo",
|
"repositoryUrl": "https://github.com/Jacekun/cs3xxx-repo",
|
||||||
|
"fileSize": 11939,
|
||||||
"status": 1,
|
"status": 1,
|
||||||
"authors": [
|
"authors": [
|
||||||
"Jace"
|
"Jace"
|
||||||
|
|
8
cs3/repo.json
Normal file
8
cs3/repo.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue