sora: updated

This commit is contained in:
hexated 2023-02-22 00:52:12 +07:00
parent 03ed443ded
commit 0c66fd9266

View file

@ -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 ->