mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
bruh
This commit is contained in:
parent
69a138b367
commit
603889c3d6
3 changed files with 7 additions and 20 deletions
|
@ -723,18 +723,17 @@ object SoraExtractor : SoraStream() {
|
||||||
season: Int? = null,
|
season: Int? = null,
|
||||||
episode: Int? = null,
|
episode: Int? = null,
|
||||||
subtitleCallback: (SubtitleFile) -> Unit,
|
subtitleCallback: (SubtitleFile) -> Unit,
|
||||||
|
callback: (ExtractorLink) -> Unit,
|
||||||
) {
|
) {
|
||||||
val headers = mapOf(
|
val headers = mapOf(
|
||||||
"lang" to "en",
|
"lang" to "en",
|
||||||
"versioncode" to "32",
|
"versioncode" to "32",
|
||||||
"clienttype" to "android_tem3",
|
"clienttype" to "android_tem3",
|
||||||
)
|
)
|
||||||
val vipAPI =
|
val vipAPI = base64DecodeAPI("cA==YXA=cy8=Y20=di8=LnQ=b2s=a2w=bG8=aS4=YXA=ZS0=aWw=b2I=LW0=Z2E=Ly8=czo=dHA=aHQ=")
|
||||||
base64DecodeAPI("cA==YXA=cy8=Y20=di8=LnQ=b2s=a2w=bG8=aS4=YXA=ZS0=aWw=b2I=LW0=Z2E=Ly8=czo=dHA=aHQ=")
|
|
||||||
val searchUrl = base64DecodeAPI("b20=LmM=b2s=a2w=bG8=Ly8=czo=dHA=aHQ=")
|
val searchUrl = base64DecodeAPI("b20=LmM=b2s=a2w=bG8=Ly8=czo=dHA=aHQ=")
|
||||||
val doc = app.get(
|
|
||||||
"$searchUrl/search?keyword=$title",
|
val doc = app.get("$searchUrl/search?keyword=$title",).document
|
||||||
).document
|
|
||||||
|
|
||||||
val scriptData = doc.select("div.search-list div.search-video-card").map {
|
val scriptData = doc.select("div.search-list div.search-video-card").map {
|
||||||
Triple(
|
Triple(
|
||||||
|
|
|
@ -3,11 +3,8 @@ package com.hexated
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty
|
import com.fasterxml.jackson.annotation.JsonProperty
|
||||||
import com.hexated.SoraExtractor.invoke123Movie
|
import com.hexated.SoraExtractor.invoke123Movie
|
||||||
import com.hexated.SoraExtractor.invokeAnimes
|
import com.hexated.SoraExtractor.invokeAnimes
|
||||||
import com.hexated.SoraExtractor.invokeBaymovies
|
|
||||||
import com.hexated.SoraExtractor.invokeBlackmovies
|
import com.hexated.SoraExtractor.invokeBlackmovies
|
||||||
import com.hexated.SoraExtractor.invokeBollyMaza
|
import com.hexated.SoraExtractor.invokeBollyMaza
|
||||||
import com.hexated.SoraExtractor.invokeChillmovies0
|
|
||||||
import com.hexated.SoraExtractor.invokeChillmovies1
|
|
||||||
import com.hexated.SoraExtractor.invokeCodexmovies
|
import com.hexated.SoraExtractor.invokeCodexmovies
|
||||||
import com.hexated.SoraExtractor.invokeDbgo
|
import com.hexated.SoraExtractor.invokeDbgo
|
||||||
import com.hexated.SoraExtractor.invokeFilmxy
|
import com.hexated.SoraExtractor.invokeFilmxy
|
||||||
|
@ -342,6 +339,7 @@ open class SoraStream : TmdbProvider() {
|
||||||
res.season,
|
res.season,
|
||||||
res.episode,
|
res.episode,
|
||||||
subtitleCallback,
|
subtitleCallback,
|
||||||
|
callback,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,7 +41,7 @@ data class FilmxyCookies(
|
||||||
fun String.filterIframe(seasonNum: Int?, lastSeason: Int?, year: Int?): Boolean {
|
fun String.filterIframe(seasonNum: Int?, lastSeason: Int?, year: Int?): Boolean {
|
||||||
return if (seasonNum != null) {
|
return if (seasonNum != null) {
|
||||||
if (lastSeason == 1) {
|
if (lastSeason == 1) {
|
||||||
this.contains(Regex("(?i)(S0?$seasonNum)|(Season\\s0?$seasonNum)|([0-9]{3,4}p)")) && !this.contains(
|
this.contains(Regex("(?i)(S0?$seasonNum)|(Season\\s0?$seasonNum)|(\\d{3,4}p)")) && !this.contains(
|
||||||
"Download",
|
"Download",
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
|
@ -617,7 +617,7 @@ fun getLanguage(str: String): String {
|
||||||
fun bytesToGigaBytes( number: Double ): Double = number / 1024000000
|
fun bytesToGigaBytes( number: Double ): Double = number / 1024000000
|
||||||
|
|
||||||
fun getKisskhTitle(str: String?): String? {
|
fun getKisskhTitle(str: String?): String? {
|
||||||
return str?.replace(Regex("[^a-zA-Z0-9]"), "-")
|
return str?.replace(Regex("[^a-zA-Z\\d]"), "-")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getQuality(str: String): Int {
|
fun getQuality(str: String): Int {
|
||||||
|
@ -641,16 +641,6 @@ fun getGMoviesQuality(str: String): Int {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getSoraQuality(quality: String): Int {
|
|
||||||
return when (quality) {
|
|
||||||
"GROOT_FD" -> Qualities.P360.value
|
|
||||||
"GROOT_LD" -> Qualities.P480.value
|
|
||||||
"GROOT_SD" -> Qualities.P720.value
|
|
||||||
"GROOT_HD" -> Qualities.P1080.value
|
|
||||||
else -> Qualities.Unknown.value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun getFDoviesQuality(str: String): String {
|
fun getFDoviesQuality(str: String): String {
|
||||||
return when {
|
return when {
|
||||||
str.contains("1080P", true) -> "1080P"
|
str.contains("1080P", true) -> "1080P"
|
||||||
|
|
Loading…
Reference in a new issue