|
|
|
@ -118,8 +118,7 @@ object BookHelp { |
|
|
|
|
content: String |
|
|
|
|
) = coroutineScope { |
|
|
|
|
val awaitList = arrayListOf<Deferred<Unit>>() |
|
|
|
|
content.split("\n").forEach { |
|
|
|
|
val matcher = AppPattern.imgPattern.matcher(it) |
|
|
|
|
val matcher = AppPattern.imgPattern.matcher(content) |
|
|
|
|
while (matcher.find()) { |
|
|
|
|
matcher.group(1)?.let { src -> |
|
|
|
|
val mSrc = NetworkUtils.getAbsoluteURL(bookChapter.url, src) |
|
|
|
@ -128,7 +127,6 @@ object BookHelp { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
awaitList.forEach { |
|
|
|
|
it.await() |
|
|
|
|
} |
|
|
|
|