pull/1155/head
gedoor 3 years ago
parent 6ba9cf84e3
commit 4ad8e7a1bd
  1. 4
      app/src/main/java/io/legado/app/utils/HtmlFormatter.kt

@ -38,7 +38,7 @@ object HtmlFormatter {
var param = "" var param = ""
sb.append( sb.append(
keepImgHtml.substring(appendPos, matcher.start()), "<img src=\"${ keepImgHtml.substring(appendPos, matcher.start()), "<img src=\"${
(NetworkUtils.getAbsoluteURL(redirectUrl, NetworkUtils.getAbsoluteURL(redirectUrl,
matcher.group(1)?.let { matcher.group(1)?.let {
val urlMatcher = AnalyzeUrl.paramPattern.matcher(it) val urlMatcher = AnalyzeUrl.paramPattern.matcher(it)
if (urlMatcher.find()) { if (urlMatcher.find()) {
@ -46,7 +46,7 @@ object HtmlFormatter {
it.substring(0, urlMatcher.start()) it.substring(0, urlMatcher.start())
} else it } else it
} ?: matcher.group(2) ?: matcher.group(3)!! } ?: matcher.group(2) ?: matcher.group(3)!!
)) + param ) + param
}\">" }\">"
) )
appendPos = matcher.end() appendPos = matcher.end()

Loading…
Cancel
Save