From 048d44f9801a0499703e8d9aafc67206427ff7f6 Mon Sep 17 00:00:00 2001 From: hexated Date: Thu, 22 Jun 2023 14:23:28 +0700 Subject: [PATCH] aigo --- SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 0d492edd..f6ee47e0 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -48,12 +48,12 @@ object SoraExtractor : SoraStream() { val lastSeasonMedia = ele.select("div.info-split > div:nth-child(2)").text().substringAfter("SS") .substringBefore("/").trim().toIntOrNull() - titleMedia.equals(title, true) || titleMedia.createSlug().equals(title.createSlug()) && - if (season == null) { + (titleMedia.equals(title, true) || titleMedia.createSlug().equals(title.createSlug())) && + (if (season == null) { yearMedia == year && url?.contains("/watch-movie/") == true } else { lastSeasonMedia == lastSeason && url?.contains("/watch-series/") == true - } + }) } ?: return val serversId = if (season == null) {