fixed sources GoodPorn

This commit is contained in:
hexated 2022-09-12 04:08:35 +07:00
parent 9f68a3b02e
commit f62ebafe65
3 changed files with 4 additions and 4 deletions

View file

@ -1,12 +1,12 @@
// use an integer for version numbers // use an integer for version numbers
version = 1 version = 2
cloudstream { cloudstream {
language = "en" language = "en"
// All of these properties are optional, you can safely remove them // All of these properties are optional, you can safely remove them
// description = "Lorem Ipsum" description = "Premium porn with 4K support"
authors = listOf("Hexated") authors = listOf("Hexated")
/** /**

View file

@ -4,6 +4,7 @@ import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
import com.lagradost.cloudstream3.utils.* import com.lagradost.cloudstream3.utils.*
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.util.*
class GoodPorn : MainAPI() { class GoodPorn : MainAPI() {
override var mainUrl = "https://goodporn.to" override var mainUrl = "https://goodporn.to"
@ -93,7 +94,7 @@ class GoodPorn : MainAPI() {
ExtractorLink( ExtractorLink(
this.name, this.name,
this.name, this.name,
res.attr("href"), res.attr("href").replace(Regex("\\?download\\S+.mp4&"), "?") + "&rnd=${Date().time}" ,
referer = data, referer = data,
quality = Regex("([0-9]+p),").find(res.text())?.groupValues?.get(1) quality = Regex("([0-9]+p),").find(res.text())?.groupValues?.get(1)
.let { getQualityFromName(it) }, .let { getQualityFromName(it) },

View file

@ -38,7 +38,6 @@ subprojects {
// when running through github workflow, GITHUB_REPOSITORY should contain current repository name // when running through github workflow, GITHUB_REPOSITORY should contain current repository name
setRepo(System.getenv("GITHUB_REPOSITORY") ?: "https://github.com/hexated/cloudstream-extensions-hexated") setRepo(System.getenv("GITHUB_REPOSITORY") ?: "https://github.com/hexated/cloudstream-extensions-hexated")
description = "Providers from all country"
authors = listOf("Hexated") authors = listOf("Hexated")
} }