mirror of
https://github.com/Jacekun/cs3xxx-repo.git
synced 2024-08-14 23:57:09 +00:00
Various cleanups and fixes on build
This commit is contained in:
parent
1393dae52e
commit
84b1e288f7
4 changed files with 10 additions and 44 deletions
|
@ -1,45 +1,8 @@
|
||||||
package com.jacekun
|
package com.jacekun
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty
|
import com.lagradost.cloudstream3.MainAPI
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.TvType
|
||||||
import com.lagradost.cloudstream3.app
|
|
||||||
import com.lagradost.cloudstream3.mvvm.logError
|
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
|
||||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
|
||||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
|
||||||
import org.jsoup.Jsoup
|
|
||||||
|
|
||||||
class Example : MainAPI() {
|
class Example : MainAPI() {
|
||||||
private val globalTvType = TvType.Movie
|
private val globalTvType = TvType.Movie
|
||||||
override var name = "Example"
|
|
||||||
override var mainUrl = "https://"
|
|
||||||
override val supportedTypes: Set<TvType> get() = setOf(TvType.NSFW)
|
|
||||||
override val hasDownloadSupport: Boolean get() = false
|
|
||||||
override val hasMainPage: Boolean get() = true
|
|
||||||
override val hasQuickSearch: Boolean get() = false
|
|
||||||
|
|
||||||
override suspend fun getMainPage(
|
|
||||||
page: Int,
|
|
||||||
request: MainPageRequest
|
|
||||||
): HomePageResponse {
|
|
||||||
throw NotImplementedError()
|
|
||||||
}
|
|
||||||
|
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
|
||||||
throw NotImplementedError()
|
|
||||||
}
|
|
||||||
|
|
||||||
override suspend fun load(url: String): LoadResponse {
|
|
||||||
throw NotImplementedError()
|
|
||||||
}
|
|
||||||
|
|
||||||
override suspend fun loadLinks(
|
|
||||||
data: String,
|
|
||||||
isCasting: Boolean,
|
|
||||||
subtitleCallback: (SubtitleFile) -> Unit,
|
|
||||||
callback: (ExtractorLink) -> Unit
|
|
||||||
): Boolean {
|
|
||||||
|
|
||||||
throw NotImplementedError()
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -5,7 +5,7 @@ version = 1
|
||||||
cloudstream {
|
cloudstream {
|
||||||
// All of these properties are optional, you can safely remove them
|
// All of these properties are optional, you can safely remove them
|
||||||
|
|
||||||
description = ""
|
description = "Hentai AHO Streaming"
|
||||||
authors = listOf("ArjixWasTaken")
|
authors = listOf("ArjixWasTaken")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -5,7 +5,7 @@ version = 1
|
||||||
cloudstream {
|
cloudstream {
|
||||||
// All of these properties are optional, you can safely remove them
|
// All of these properties are optional, you can safely remove them
|
||||||
|
|
||||||
description = ""
|
description = "HD JAV Library"
|
||||||
authors = listOf("Jace")
|
authors = listOf("Jace")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -235,8 +235,11 @@ class JavHD : MainAPI() {
|
||||||
count++
|
count++
|
||||||
when {
|
when {
|
||||||
vid.startsWith("https://javhdfree.icu") -> {
|
vid.startsWith("https://javhdfree.icu") -> {
|
||||||
FEmbed().getSafeUrl(
|
val editedLink = vid.removePrefix("https://")
|
||||||
url = vid,
|
val idx = editedLink.indexOf('/', 0) + 1
|
||||||
|
val finalLink = "https://embedsito.com/${editedLink.substring(idx)}"
|
||||||
|
loadExtractor(
|
||||||
|
url = finalLink,
|
||||||
referer = vid,
|
referer = vid,
|
||||||
subtitleCallback = subtitleCallback,
|
subtitleCallback = subtitleCallback,
|
||||||
callback = callback
|
callback = callback
|
||||||
|
@ -244,7 +247,7 @@ class JavHD : MainAPI() {
|
||||||
}
|
}
|
||||||
vid.startsWith("https://viewsb.com") -> {
|
vid.startsWith("https://viewsb.com") -> {
|
||||||
val url = vid.replace("viewsb.com", "watchsb.com")
|
val url = vid.replace("viewsb.com", "watchsb.com")
|
||||||
WatchSB().getSafeUrl(
|
loadExtractor(
|
||||||
url = url,
|
url = url,
|
||||||
referer = url,
|
referer = url,
|
||||||
subtitleCallback = subtitleCallback,
|
subtitleCallback = subtitleCallback,
|
||||||
|
|
Loading…
Reference in a new issue