diff --git a/Example/src/main/kotlin/com/jacekun/Example.kt b/Example/src/main/kotlin/com/jacekun/Example.kt index a90a475..09f6a9d 100644 --- a/Example/src/main/kotlin/com/jacekun/Example.kt +++ b/Example/src/main/kotlin/com/jacekun/Example.kt @@ -1,45 +1,8 @@ package com.jacekun -import com.fasterxml.jackson.annotation.JsonProperty -import com.lagradost.cloudstream3.* -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 +import com.lagradost.cloudstream3.MainAPI +import com.lagradost.cloudstream3.TvType class Example : MainAPI() { private val globalTvType = TvType.Movie - override var name = "Example" - override var mainUrl = "https://" - override val supportedTypes: Set 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 { - 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() - } } \ No newline at end of file diff --git a/Hahomoe/build.gradle.kts b/Hahomoe/build.gradle.kts index 6d826de..e1aa530 100644 --- a/Hahomoe/build.gradle.kts +++ b/Hahomoe/build.gradle.kts @@ -5,7 +5,7 @@ version = 1 cloudstream { // All of these properties are optional, you can safely remove them - description = "" + description = "Hentai AHO Streaming" authors = listOf("ArjixWasTaken") /** diff --git a/JavHD/build.gradle.kts b/JavHD/build.gradle.kts index 0bf89c3..b0997fd 100644 --- a/JavHD/build.gradle.kts +++ b/JavHD/build.gradle.kts @@ -5,7 +5,7 @@ version = 1 cloudstream { // All of these properties are optional, you can safely remove them - description = "" + description = "HD JAV Library" authors = listOf("Jace") /** diff --git a/JavHD/src/main/kotlin/com/jacekun/JavHD.kt b/JavHD/src/main/kotlin/com/jacekun/JavHD.kt index f5cea16..ac4ee75 100644 --- a/JavHD/src/main/kotlin/com/jacekun/JavHD.kt +++ b/JavHD/src/main/kotlin/com/jacekun/JavHD.kt @@ -235,8 +235,11 @@ class JavHD : MainAPI() { count++ when { vid.startsWith("https://javhdfree.icu") -> { - FEmbed().getSafeUrl( - url = vid, + val editedLink = vid.removePrefix("https://") + val idx = editedLink.indexOf('/', 0) + 1 + val finalLink = "https://embedsito.com/${editedLink.substring(idx)}" + loadExtractor( + url = finalLink, referer = vid, subtitleCallback = subtitleCallback, callback = callback @@ -244,7 +247,7 @@ class JavHD : MainAPI() { } vid.startsWith("https://viewsb.com") -> { val url = vid.replace("viewsb.com", "watchsb.com") - WatchSB().getSafeUrl( + loadExtractor( url = url, referer = url, subtitleCallback = subtitleCallback,