From 4d0ca22f88c981623cfa85e4a2af5d0c7abbcf25 Mon Sep 17 00:00:00 2001 From: Owen <96526481+owencz1998@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:31:04 +0000 Subject: [PATCH] remove for now --- Porn00/build.gradle.kts | 25 ----- Porn00/src/main/AndroidManifest.xml | 2 - .../src/main/kotlin/com/owencz1998/Porn00.kt | 95 ------------------- .../kotlin/com/owencz1998/Porn00Provider.kt | 12 --- 4 files changed, 134 deletions(-) delete mode 100644 Porn00/build.gradle.kts delete mode 100644 Porn00/src/main/AndroidManifest.xml delete mode 100644 Porn00/src/main/kotlin/com/owencz1998/Porn00.kt delete mode 100644 Porn00/src/main/kotlin/com/owencz1998/Porn00Provider.kt diff --git a/Porn00/build.gradle.kts b/Porn00/build.gradle.kts deleted file mode 100644 index f3447e2..0000000 --- a/Porn00/build.gradle.kts +++ /dev/null @@ -1,25 +0,0 @@ -// use an integer for version numbers -version = 3 - -cloudstream { - // All of these properties are optional, you can safely remove them - - description = "Whoreshub" - language = "en" - authors = listOf("owenconnor") - - /** - * Status int as the following: - * 0: Down - * 1: Ok - * 2: Slow - * 3: Beta only - * */ - status = 1 // will be 3 if unspecified - - // List of video source types. Users are able to filter for extensions in a given category. - // 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://findbestporno.com/public/uploads/image/2021/8/Porn00.jpg" -} \ No newline at end of file diff --git a/Porn00/src/main/AndroidManifest.xml b/Porn00/src/main/AndroidManifest.xml deleted file mode 100644 index 568741e..0000000 --- a/Porn00/src/main/AndroidManifest.xml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/Porn00/src/main/kotlin/com/owencz1998/Porn00.kt b/Porn00/src/main/kotlin/com/owencz1998/Porn00.kt deleted file mode 100644 index 3f6f0a7..0000000 --- a/Porn00/src/main/kotlin/com/owencz1998/Porn00.kt +++ /dev/null @@ -1,95 +0,0 @@ -package com.owencz1998 - -import org.jsoup.nodes.Element -import com.lagradost.cloudstream3.* -import com.lagradost.cloudstream3.utils.* - -class Porn00 : MainAPI() { - override var mainUrl = "https://www.porn00.com" - override var name = "Porn00" - override val hasMainPage = true - override var lang = "en" - override val hasQuickSearch = false - override val hasDownloadSupport = true - override val supportedTypes = setOf(TvType.NSFW) - override val vpnStatus = VPNStatus.MightBeNeeded - - override val mainPage = mainPageOf( - "${mainUrl}/latest-vids" to "Latest", - "${mainUrl}/popular-vids" to "Most Popular", - ) - - override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse { - val document = app.get("${request.data}/${page}/").document - val home = document.select("div.block-thumbs a.item").mapNotNull { it.toSearchResult() } - - return newHomePageResponse( - list = HomePageList( - name = request.name, - list = home, - isHorizontalImages = true - ), - hasNext = true - ) - } - - private fun Element.toSearchResult(): SearchResponse { - val title = this.attr("title") - val href = this.attr("href") - val posterUrl = fixUrlNull(this.selectFirst("img").attr("data-src")) - - return newMovieSearchResponse(title, href, TvType.Movie) { - this.posterUrl = posterUrl - } - } - - override suspend fun search(query: String): List { - val searchResponse = mutableListOf() - - val document = app.get("${mainUrl}/search/?q=${query}").document - - val results = document.select("div.block-thumbs a.item").mapNotNull { it.toSearchResult() } - - searchResponse.addAll(results) - - return searchResponse - } - - override suspend fun load(url: String): LoadResponse { - val document = app.get(url).document - val title = document.selectFirst("meta[property=og:title]").attr("content") - val posterUrl = fixUrlNull(document.selectFirst("meta[property=og:image]").attr("content")) - - return newMovieLoadResponse(title, url, TvType.NSFW, url) { - this.posterUrl = posterUrl - } - } - - override suspend fun loadLinks( - data: String, - isCasting: Boolean, - subtitleCallback: (SubtitleFile) -> Unit, - callback: (ExtractorLink) -> Unit - ): Boolean { - - val document = app.get(data).document - val docText = document.toString() - val regex = Regex("""video_(?:url|alt_url(?:2|3)?): '(https:\/\/[^']+)'""") - val links = regex.findAll(docText).map { it.groupValues[1] }.toList() - for(link in links) { - if(link.isNotEmpty()) { - callback.invoke( - ExtractorLink( - this.name, - this.name, - link, - referer = "", - quality = Regex("""_(1080|720|480|360)p\.mp4""").find(link) ?. groupValues ?. getOrNull(1) ?. toIntOrNull() ?: Qualities.Unknown.value, - ) - ) - } - } - - return true - } -} \ No newline at end of file diff --git a/Porn00/src/main/kotlin/com/owencz1998/Porn00Provider.kt b/Porn00/src/main/kotlin/com/owencz1998/Porn00Provider.kt deleted file mode 100644 index 8fd818a..0000000 --- a/Porn00/src/main/kotlin/com/owencz1998/Porn00Provider.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.owencz1998 - -import android.content.Context -import com.lagradost.cloudstream3.plugins.CloudstreamPlugin -import com.lagradost.cloudstream3.plugins.Plugin - -@CloudstreamPlugin -class Porn00Provider : Plugin() { - override fun load(context: Context) { - registerMainAPI(Porn00()) - } -} \ No newline at end of file