small fix

This commit is contained in:
hexated 2023-06-22 12:44:23 +07:00
parent b93f93a0d8
commit f264613336

View file

@ -50,9 +50,9 @@ object SoraExtractor : SoraStream() {
?.substringBefore("/")?.toIntOrNull() ?.substringBefore("/")?.toIntOrNull()
titleMedia.equals(title, true) || titleMedia.createSlug().equals(title.createSlug()) && titleMedia.equals(title, true) || titleMedia.createSlug().equals(title.createSlug()) &&
if (season == null) { if (season == null) {
yearMedia == year && url?.contains("/series/") == true yearMedia == year && url?.contains("/movie/") == true
} else { } else {
lastSeasonMedia == lastSeason && url?.contains("/movie/") == true lastSeasonMedia == lastSeason && url?.contains("/series/") == true
} }
} ?: return } ?: return