diff --git a/src/en/readcomiconline/build.gradle b/src/en/readcomiconline/build.gradle index 31ff3a77f..0fa285988 100644 --- a/src/en/readcomiconline/build.gradle +++ b/src/en/readcomiconline/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'ReadComicOnline' extClass = '.Readcomiconline' - extVersionCode = 30 + extVersionCode = 31 } apply from: "$rootDir/common.gradle" diff --git a/src/en/readcomiconline/src/eu/kanade/tachiyomi/extension/en/readcomiconline/Readcomiconline.kt b/src/en/readcomiconline/src/eu/kanade/tachiyomi/extension/en/readcomiconline/Readcomiconline.kt index df9aa6583..1432d07e2 100644 --- a/src/en/readcomiconline/src/eu/kanade/tachiyomi/extension/en/readcomiconline/Readcomiconline.kt +++ b/src/en/readcomiconline/src/eu/kanade/tachiyomi/extension/en/readcomiconline/Readcomiconline.kt @@ -236,8 +236,8 @@ class Readcomiconline : ConfigurableSource, ParsedHttpSource() { val html = document.outerHtml() val match = KEY_REGEX.find(html) - val key1 = match?.groups?.get(1)?.value ?: throw Exception("Fail to get image links.") - val key2 = match?.groups?.get(2)?.value ?: throw Exception("Fail to get image links.") + val key1 = match?.groups?.get(1)?.value ?: throw Exception("Fail to get image links. Logging in via WebView may fix this issue.") + val key2 = match?.groups?.get(2)?.value ?: throw Exception("Fail to get image links. Logging in via WebView may fix this issue.") handler.post { val innerWv = WebView(Injekt.get()) @@ -444,6 +444,6 @@ class Readcomiconline : ConfigurableSource, ParsedHttpSource() { private const val QUALITY_PREF = "qualitypref" private const val SERVER_PREF_TITLE = "Server Preference" private const val SERVER_PREF = "serverpref" - private val KEY_REGEX = """\.attr\(\s*['"]src['"]\s*,\s*([\w]+)\(\s*([\w]+)\[\s*currImage""".toRegex() + private val KEY_REGEX = """\.attr\(\s*['"]src['"]\s*,\s*([\w]+)\(\s*([\w]+)\[\s*\w+""".toRegex() } }