mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Aniworld & Oploverz: fix sources
This commit is contained in:
parent
c66b1bdedb
commit
dbab64a82b
6 changed files with 39 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 2
|
version = 3
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.hexated
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty
|
import com.fasterxml.jackson.annotation.JsonProperty
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
||||||
|
import com.lagradost.cloudstream3.extractors.DoodLaExtractor
|
||||||
import com.lagradost.cloudstream3.extractors.Voe
|
import com.lagradost.cloudstream3.extractors.Voe
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
|
||||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||||
|
@ -140,7 +141,7 @@ class Aniworld : MainAPI() {
|
||||||
it.select("h4").text()
|
it.select("h4").text()
|
||||||
)
|
)
|
||||||
}.filter {
|
}.filter {
|
||||||
it.third == "VOE"
|
it.third != "Vidoza"
|
||||||
}.apmap {
|
}.apmap {
|
||||||
val redirectUrl = app.get(fixUrl(it.second)).url
|
val redirectUrl = app.get(fixUrl(it.second)).url
|
||||||
loadExtractor(redirectUrl, data, subtitleCallback) { link ->
|
loadExtractor(redirectUrl, data, subtitleCallback) { link ->
|
||||||
|
@ -184,6 +185,14 @@ class Aniworld : MainAPI() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class Dooood : DoodLaExtractor() {
|
||||||
|
override var mainUrl = "https://urochsunloath.com"
|
||||||
|
}
|
||||||
|
|
||||||
|
class Simpulumlamerop : Voe() {
|
||||||
|
override var mainUrl = "https://simpulumlamerop.com"
|
||||||
|
}
|
||||||
|
|
||||||
class Urochsunloath : Voe() {
|
class Urochsunloath : Voe() {
|
||||||
override var mainUrl = "https://urochsunloath.com"
|
override var mainUrl = "https://urochsunloath.com"
|
||||||
}
|
}
|
|
@ -11,5 +11,7 @@ class AniworldPlugin: Plugin() {
|
||||||
// All providers should be added in this manner. Please don't edit the providers list directly.
|
// All providers should be added in this manner. Please don't edit the providers list directly.
|
||||||
registerMainAPI(Aniworld())
|
registerMainAPI(Aniworld())
|
||||||
registerExtractorAPI(Urochsunloath())
|
registerExtractorAPI(Urochsunloath())
|
||||||
|
registerExtractorAPI(Simpulumlamerop())
|
||||||
|
registerExtractorAPI(Dooood())
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 17
|
version = 18
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -263,3 +263,27 @@ class Streamhide : Filesim() {
|
||||||
override val mainUrl = "https://streamhide.to"
|
override val mainUrl = "https://streamhide.to"
|
||||||
override val name = "Streamhide"
|
override val name = "Streamhide"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open class Pixeldrain : ExtractorApi() {
|
||||||
|
override val name = "Pixeldrain"
|
||||||
|
override val mainUrl = "https://pixeldrain.com"
|
||||||
|
override val requiresReferer = false
|
||||||
|
override suspend fun getUrl(
|
||||||
|
url: String,
|
||||||
|
referer: String?,
|
||||||
|
subtitleCallback: (SubtitleFile) -> Unit,
|
||||||
|
callback: (ExtractorLink) -> Unit
|
||||||
|
) {
|
||||||
|
val mId = Regex("/([ul]/[\\da-zA-Z\\-]+)").find(url)?.groupValues?.get(1)?.split("/")
|
||||||
|
callback.invoke(
|
||||||
|
ExtractorLink(
|
||||||
|
this.name,
|
||||||
|
this.name,
|
||||||
|
"$mainUrl/api/file/${mId?.last() ?: return}?download",
|
||||||
|
url,
|
||||||
|
Qualities.Unknown.value,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -11,5 +11,6 @@ class OploverzProviderPlugin: Plugin() {
|
||||||
// All providers should be added in this manner. Please don't edit the providers list directly.
|
// All providers should be added in this manner. Please don't edit the providers list directly.
|
||||||
registerMainAPI(OploverzProvider())
|
registerMainAPI(OploverzProvider())
|
||||||
registerExtractorAPI(Streamhide())
|
registerExtractorAPI(Streamhide())
|
||||||
|
registerExtractorAPI(Pixeldrain())
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue