From fd2b90c895f8fa715148e9ba255fece4d6f362a0 Mon Sep 17 00:00:00 2001 From: hexated Date: Mon, 21 Nov 2022 17:49:52 +0700 Subject: [PATCH] fixed quality and size in UHDMovies --- .../src/main/kotlin/com/hexated/SoraExtractor.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 2d1d8332..443a12e8 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -1215,14 +1215,14 @@ object SoraExtractor : SoraStream() { .mapNotNull { if (season == null) { Triple( - it.ownText(), - it.selectFirst("span")?.text(), + it.text(), + it.selectFirst("span")?.text() ?: it.select("strong").last()?.text() ?: "", it.nextElementSibling()?.select("a")?.attr("href") ) } else { Triple( - it.ownText(), - it.selectFirst("span")?.text(), + it.text(), + it.selectFirst("span")?.text() ?: it.select("strong").last()?.text() ?: "", it.nextElementSibling()?.select("a:contains(Episode $episode)") ?.attr("href") ) @@ -1246,7 +1246,7 @@ object SoraExtractor : SoraStream() { val videoQuality = Regex("(\\d{3,4})p").find(quality)?.groupValues?.getOrNull(1)?.toIntOrNull() ?: Qualities.Unknown.value - val videoSize = size?.substringBeforeLast("/") + val videoSize = size.substringBeforeLast("/") callback.invoke( ExtractorLink( "UHDMovies [$videoSize]",