From 0a53b10521f9ec830be369511b51822178387b3c Mon Sep 17 00:00:00 2001 From: hexated Date: Mon, 12 Sep 2022 04:08:35 +0700 Subject: [PATCH] fixed sources GoodPorn --- GoodPorn/build.gradle.kts | 4 ++-- GoodPorn/src/main/kotlin/com/hexated/GoodPorn.kt | 3 ++- build.gradle.kts | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/GoodPorn/build.gradle.kts b/GoodPorn/build.gradle.kts index 34398fc9..f6198d76 100644 --- a/GoodPorn/build.gradle.kts +++ b/GoodPorn/build.gradle.kts @@ -1,12 +1,12 @@ // use an integer for version numbers -version = 1 +version = 2 cloudstream { language = "en" // All of these properties are optional, you can safely remove them - // description = "Lorem Ipsum" + description = "Premium porn with 4K support" authors = listOf("Hexated") /** diff --git a/GoodPorn/src/main/kotlin/com/hexated/GoodPorn.kt b/GoodPorn/src/main/kotlin/com/hexated/GoodPorn.kt index 52fcce5b..5479c913 100644 --- a/GoodPorn/src/main/kotlin/com/hexated/GoodPorn.kt +++ b/GoodPorn/src/main/kotlin/com/hexated/GoodPorn.kt @@ -4,6 +4,7 @@ import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.LoadResponse.Companion.addActors import com.lagradost.cloudstream3.utils.* import org.jsoup.nodes.Element +import java.util.* class GoodPorn : MainAPI() { override var mainUrl = "https://goodporn.to" @@ -93,7 +94,7 @@ class GoodPorn : MainAPI() { ExtractorLink( this.name, this.name, - res.attr("href"), + res.attr("href").replace(Regex("\\?download\\S+.mp4&"), "?") + "&rnd=${Date().time}" , referer = data, quality = Regex("([0-9]+p),").find(res.text())?.groupValues?.get(1) .let { getQualityFromName(it) }, diff --git a/build.gradle.kts b/build.gradle.kts index ece36bb1..80ceb468 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -38,7 +38,6 @@ subprojects { // when running through github workflow, GITHUB_REPOSITORY should contain current repository name setRepo(System.getenv("GITHUB_REPOSITORY") ?: "https://github.com/hexated/cloudstream-extensions-hexated") - description = "Providers from all country" authors = listOf("Hexated") }