diff --git a/lib-multisrc/colamanga/build.gradle.kts b/lib-multisrc/colamanga/build.gradle.kts index 90ae835f0..cc03fe877 100644 --- a/lib-multisrc/colamanga/build.gradle.kts +++ b/lib-multisrc/colamanga/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("lib-multisrc") } -baseVersionCode = 3 +baseVersionCode = 4 dependencies { api(project(":lib:synchrony")) diff --git a/lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt b/lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt index 1a8028579..293041f15 100644 --- a/lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt +++ b/lib-multisrc/colamanga/src/eu/kanade/tachiyomi/multisrc/colamanga/ColaManga.kt @@ -276,7 +276,7 @@ abstract class ColaManga( }.also(screen::addPreference) } - private val keyMappingRegex = Regex("""[0-9A-Za-z_]+\s*==\s*['"](?\d+)['"]\s*&&\s*\([0-9A-Za-z_]+\s*=\s*['"](?[a-zA-Z0-9]+)['"]\)""") + private val keyMappingRegex = Regex("""if\s*\(\s*([a-zA-Z0-9_]+)\s*==\s*(?\d+)\s*\)\s*\{\s*return\s*'(?[a-zA-Z0-9_]+)'\s*;""") private val keyMapping by lazy { val obfuscatedReadJs = client.newCall(GET("$baseUrl/js/manga.read.js")).execute().body.string()