mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: updated
This commit is contained in:
parent
03ed443ded
commit
0c66fd9266
1 changed files with 3 additions and 4 deletions
|
@ -2446,15 +2446,14 @@ object SoraExtractor : SoraStream() {
|
||||||
val files = app.get(
|
val files = app.get(
|
||||||
"https://api.telegram.d1.zindex.eu.org/search?name=${encode(query)}&page=1",
|
"https://api.telegram.d1.zindex.eu.org/search?name=${encode(query)}&page=1",
|
||||||
referer = tgarMovieAPI,
|
referer = tgarMovieAPI,
|
||||||
headers = mapOf("Origin" to tgarMovieAPI),
|
timeout = 600L
|
||||||
verify = false
|
|
||||||
).parsedSafe<TgarData>()?.results?.filter { media ->
|
).parsedSafe<TgarData>()?.results?.filter { media ->
|
||||||
(if (season == null) {
|
(if (season == null) {
|
||||||
media.name?.contains("$year") == true
|
media.name?.contains("$year") == true
|
||||||
} else {
|
} else {
|
||||||
media.name?.contains(Regex("(?i)S${seasonSlug}.?E${episodeSlug}")) == true
|
media.name?.contains(Regex("(?i)S${seasonSlug}.?E${episodeSlug}")) == true
|
||||||
}) && media.name?.contains(
|
}) && media.name?.contains(
|
||||||
Regex("(?i)(2160p|1080p)")
|
Regex("(?i)(2160p|1080p|720p)")
|
||||||
) == true && (media.mime_type in mimeType) && (media.name.replace(
|
) == true && (media.mime_type in mimeType) && (media.name.replace(
|
||||||
"-",
|
"-",
|
||||||
"."
|
"."
|
||||||
|
@ -2467,7 +2466,7 @@ object SoraExtractor : SoraStream() {
|
||||||
).contains("$spaceSlug", true) || media.name.replace(
|
).contains("$spaceSlug", true) || media.name.replace(
|
||||||
"-",
|
"-",
|
||||||
"_"
|
"_"
|
||||||
).contains("$slashSlug", true))
|
).contains("$slashSlug", true) || media.name.contains("${title?.replace(" ", "_")}"))
|
||||||
}
|
}
|
||||||
|
|
||||||
files?.map { file ->
|
files?.map { file ->
|
||||||
|
|
Loading…
Reference in a new issue