small fix

This commit is contained in:
hexated 2023-01-29 10:54:33 +07:00
parent 93cf4840a1
commit 5626049d94

View file

@ -2099,7 +2099,7 @@ object SoraExtractor : SoraStream() {
val query = if (season == null) { val query = if (season == null) {
"$title $year" "$title $year"
} else { } else {
"$title S${episodeSlug}E${seasonSlug}" "$title S${seasonSlug}E${episodeSlug}"
} }
val media = val media =
@ -2108,7 +2108,7 @@ object SoraExtractor : SoraStream() {
(if (season == null) { (if (season == null) {
media.name?.contains("$year") == true media.name?.contains("$year") == true
} else { } else {
media.name?.contains(Regex("(?i)S${episodeSlug}E${seasonSlug}")) == true media.name?.contains(Regex("(?i)S${seasonSlug}E${episodeSlug}")) == true
}) && media.name?.contains( }) && media.name?.contains(
"720p", "720p",
true true