Kickassanime & Hianime: Fix subtitles #937

Merged
V3u47ZoN merged 13 commits from subs into main 2025-04-24 06:53:04 -05:00
Showing only changes of commit 3433d4a58e - Show all commits

View file

@ -47,9 +47,7 @@ class MegaCloudExtractor(
private var shouldUpdateKey = false
private const val PREF_KEY_KEY = "megacloud_key_"
private const val PREF_KEY_DEFAULT = "[[0, 0]]"
private val FIX_SUBTITLE_REGEX = Regex("""${'$'}(\n{2,})(?!\d+:\d+(?:\.\d+)?\s-+>\s\d+:\d+(?:\.\d+)?)""", RegexOption.MULTILINE)
private inline fun <reified R> runLocked(crossinline block: () -> R) = runBlocking(Dispatchers.IO) {
MUTEX.withLock { block() }
}