Aniworld & Oploverz: fix sources

This commit is contained in:
hexated 2023-06-19 06:40:00 +07:00
parent c66b1bdedb
commit dbab64a82b
6 changed files with 39 additions and 3 deletions

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 2
version = 3
cloudstream {

View File

@ -3,6 +3,7 @@ package com.hexated
import com.fasterxml.jackson.annotation.JsonProperty
import com.lagradost.cloudstream3.*
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
import com.lagradost.cloudstream3.extractors.DoodLaExtractor
import com.lagradost.cloudstream3.extractors.Voe
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
import com.lagradost.cloudstream3.utils.ExtractorLink
@ -140,7 +141,7 @@ class Aniworld : MainAPI() {
it.select("h4").text()
)
}.filter {
it.third == "VOE"
it.third != "Vidoza"
}.apmap {
val redirectUrl = app.get(fixUrl(it.second)).url
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() {
override var mainUrl = "https://urochsunloath.com"
}

View File

@ -11,5 +11,7 @@ class AniworldPlugin: Plugin() {
// All providers should be added in this manner. Please don't edit the providers list directly.
registerMainAPI(Aniworld())
registerExtractorAPI(Urochsunloath())
registerExtractorAPI(Simpulumlamerop())
registerExtractorAPI(Dooood())
}
}

View File

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 17
version = 18
cloudstream {

View File

@ -263,3 +263,27 @@ class Streamhide : Filesim() {
override val mainUrl = "https://streamhide.to"
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,
)
)
}
}

View File

@ -11,5 +11,6 @@ class OploverzProviderPlugin: Plugin() {
// All providers should be added in this manner. Please don't edit the providers list directly.
registerMainAPI(OploverzProvider())
registerExtractorAPI(Streamhide())
registerExtractorAPI(Pixeldrain())
}
}