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(
|
||||
"https://api.telegram.d1.zindex.eu.org/search?name=${encode(query)}&page=1",
|
||||
referer = tgarMovieAPI,
|
||||
headers = mapOf("Origin" to tgarMovieAPI),
|
||||
verify = false
|
||||
timeout = 600L
|
||||
).parsedSafe<TgarData>()?.results?.filter { media ->
|
||||
(if (season == null) {
|
||||
media.name?.contains("$year") == true
|
||||
} else {
|
||||
media.name?.contains(Regex("(?i)S${seasonSlug}.?E${episodeSlug}")) == true
|
||||
}) && media.name?.contains(
|
||||
Regex("(?i)(2160p|1080p)")
|
||||
Regex("(?i)(2160p|1080p|720p)")
|
||||
) == true && (media.mime_type in mimeType) && (media.name.replace(
|
||||
"-",
|
||||
"."
|
||||
|
@ -2467,7 +2466,7 @@ object SoraExtractor : SoraStream() {
|
|||
).contains("$spaceSlug", true) || media.name.replace(
|
||||
"-",
|
||||
"_"
|
||||
).contains("$slashSlug", true))
|
||||
).contains("$slashSlug", true) || media.name.contains("${title?.replace(" ", "_")}"))
|
||||
}
|
||||
|
||||
files?.map { file ->
|
||||
|
|
Loading…
Reference in a new issue