This commit is contained in:
hexated 2023-06-22 14:23:28 +07:00
parent a1f720b878
commit 048d44f980

View file

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