fix tags in uhdmovies

This commit is contained in:
hexated 2023-01-29 13:00:50 +07:00
parent b47423d641
commit 61f94e0246

View file

@ -1371,8 +1371,8 @@ object SoraExtractor : SoraStream() {
extractMirrorUHD(bitLink, base) extractMirrorUHD(bitLink, base)
} }
val videoQuality = val tags =
Regex("\\d{3,4}[Pp]\\.?(.*?)\\[").find(quality)?.groupValues?.getOrNull(1)?.trim() Regex("\\d{3,4}[Pp]\\.?(.*?)\\[").find(quality)?.groupValues?.getOrNull(1)?.replace(".", " ")?.trim()
?: "" ?: ""
val qualities = val qualities =
Regex("(\\d{3,4})[Pp]").find(quality)?.groupValues?.getOrNull(1)?.toIntOrNull() Regex("(\\d{3,4})[Pp]").find(quality)?.groupValues?.getOrNull(1)?.toIntOrNull()
@ -1382,8 +1382,8 @@ object SoraExtractor : SoraStream() {
?.let { "[$it]" } ?: quality ?.let { "[$it]" } ?: quality
callback.invoke( callback.invoke(
ExtractorLink( ExtractorLink(
"UHDMovies $videoQuality $size", "UHDMovies $tags $size",
"UHDMovies $videoQuality $size", "UHDMovies $tags $size",
downloadLink ?: return@apmap null, downloadLink ?: return@apmap null,
"", "",
qualities qualities