size fix in UHDMovies

This commit is contained in:
hexated 2022-11-28 15:47:35 +07:00
parent 1ce4c45207
commit 3932fd32ab

View file

@ -1260,7 +1260,7 @@ object SoraExtractor : SoraStream() {
val videoQuality = Regex("(\\d{3,4})p").find(quality)?.groupValues?.getOrNull(1)?.toIntOrNull()
?: Qualities.Unknown.value
val videoSize = size.substringBefore("/").let { if(it.contains("[")) it else "[$it]" }
val videoSize = size.substringBeforeLast("/").let { if(it.contains("[")) it else "[$it]" }
callback.invoke(
ExtractorLink(
"UHDMovies $videoSize",