Fix regex

This commit is contained in:
V3u47ZoN 2025-04-22 06:29:15 +00:00 committed by GitHub
parent 3433d4a58e
commit 27bce2914b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -368,7 +368,7 @@ class PlaylistUtils(private val client: OkHttpClient, private val headers: Heade
}
companion object {
private val FIX_SUBTITLE_REGEX = Regex("""${'$'}(\n{2,})(?!\d+:\d+(?:\.\d+)?\s-+>\s\d+:\d+(?:\.\d+)?)""", RegexOption.MULTILINE)
private val FIX_SUBTITLE_REGEX = Regex("""${'$'}(\n{2,})(?!(?:\d+:)*\d+(?:\.\d+)?\s-+>\s(?:\d+:)*\d+(?:\.\d+)?)""", RegexOption.MULTILINE)
private const val PLAYLIST_SEPARATOR = "#EXT-X-STREAM-INF:"