fixed quality and size in UHDMovies

This commit is contained in:
hexated 2022-11-21 17:49:52 +07:00
parent 6c10e59ee5
commit fd2b90c895

View file

@ -1215,14 +1215,14 @@ object SoraExtractor : SoraStream() {
.mapNotNull { .mapNotNull {
if (season == null) { if (season == null) {
Triple( Triple(
it.ownText(), it.text(),
it.selectFirst("span")?.text(), it.selectFirst("span")?.text() ?: it.select("strong").last()?.text() ?: "",
it.nextElementSibling()?.select("a")?.attr("href") it.nextElementSibling()?.select("a")?.attr("href")
) )
} else { } else {
Triple( Triple(
it.ownText(), it.text(),
it.selectFirst("span")?.text(), it.selectFirst("span")?.text() ?: it.select("strong").last()?.text() ?: "",
it.nextElementSibling()?.select("a:contains(Episode $episode)") it.nextElementSibling()?.select("a:contains(Episode $episode)")
?.attr("href") ?.attr("href")
) )
@ -1246,7 +1246,7 @@ object SoraExtractor : SoraStream() {
val videoQuality = Regex("(\\d{3,4})p").find(quality)?.groupValues?.getOrNull(1)?.toIntOrNull() val videoQuality = Regex("(\\d{3,4})p").find(quality)?.groupValues?.getOrNull(1)?.toIntOrNull()
?: Qualities.Unknown.value ?: Qualities.Unknown.value
val videoSize = size?.substringBeforeLast("/") val videoSize = size.substringBeforeLast("/")
callback.invoke( callback.invoke(
ExtractorLink( ExtractorLink(
"UHDMovies [$videoSize]", "UHDMovies [$videoSize]",