diff --git a/src/all/nhentai/build.gradle b/src/all/nhentai/build.gradle index 79740fc5b..7d43d3c2d 100644 --- a/src/all/nhentai/build.gradle +++ b/src/all/nhentai/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'NHentai' extClass = '.NHFactory' - extVersionCode = 49 + extVersionCode = 50 isNsfw = true } diff --git a/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt b/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt index f3a50c78d..2784f7e17 100644 --- a/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt +++ b/src/all/nhentai/src/eu/kanade/tachiyomi/extension/all/nhentai/NHentai.kt @@ -74,7 +74,7 @@ open class NHentai( } private val shortenTitleRegex = Regex("""(\[[^]]*]|[({][^)}]*[)}])""") - private val dataRegex = Regex("""JSON.parse\("([^*]*)"\)""") + private val dataRegex = Regex("""JSON\.parse\(\s*"(.*)"\s*\)""") private val hentaiSelector = "script:containsData(JSON.parse):not(:containsData(media_server))" private fun String.shortenTitle() = this.replace(shortenTitleRegex, "").trim()