mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed quality and size in UHDMovies
This commit is contained in:
parent
6c10e59ee5
commit
fd2b90c895
1 changed files with 5 additions and 5 deletions
|
@ -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]",
|
||||||
|
|
Loading…
Reference in a new issue