sora: small fix in Smashy

This commit is contained in:
hexated 2023-02-28 06:09:18 +07:00
parent 07f3a57857
commit a19623d0e9

View file

@ -441,6 +441,7 @@ suspend fun invokeSmashyTwo(
).parsedSafe<Smashy1Source>() ?: return
val videoUrl = base64Decode(source.file ?: return)
if(videoUrl.contains("/bug")) return
val quality =
Regex("(\\d{3,4})[Pp]").find(videoUrl)?.groupValues?.getOrNull(1)?.toIntOrNull()
?: Qualities.P720.value