|
|
@ -96,7 +96,7 @@ object ChapterProvider { |
|
|
|
val matcher = AppPattern.imgPattern.matcher(text) |
|
|
|
val matcher = AppPattern.imgPattern.matcher(text) |
|
|
|
while (matcher.find()) { |
|
|
|
while (matcher.find()) { |
|
|
|
matcher.group(1)?.let { it -> |
|
|
|
matcher.group(1)?.let { it -> |
|
|
|
val src = NetworkUtils.getAbsoluteURL(bookChapter.url, it) |
|
|
|
val src = NetworkUtils.getAbsoluteURL(bookChapter.getAbsoluteURL(), it) |
|
|
|
srcList.add(src) |
|
|
|
srcList.add(src) |
|
|
|
ImageProvider.getImage(book, bookChapter.index, src) |
|
|
|
ImageProvider.getImage(book, bookChapter.index, src) |
|
|
|
matcher.appendReplacement(sb, srcReplaceChar) |
|
|
|
matcher.appendReplacement(sb, srcReplaceChar) |
|
|
@ -120,7 +120,10 @@ object ChapterProvider { |
|
|
|
if (matcher.find()) { |
|
|
|
if (matcher.find()) { |
|
|
|
matcher.group(1)?.let { it -> |
|
|
|
matcher.group(1)?.let { it -> |
|
|
|
if (!book.isEpub()) { |
|
|
|
if (!book.isEpub()) { |
|
|
|
val src = NetworkUtils.getAbsoluteURL(bookChapter.url, it) |
|
|
|
val src = NetworkUtils.getAbsoluteURL( |
|
|
|
|
|
|
|
bookChapter.getAbsoluteURL(), |
|
|
|
|
|
|
|
it |
|
|
|
|
|
|
|
) |
|
|
|
durY = setTypeImage( |
|
|
|
durY = setTypeImage( |
|
|
|
book, bookChapter, src, |
|
|
|
book, bookChapter, src, |
|
|
|
durY, textPages, book.getImageStyle() |
|
|
|
durY, textPages, book.getImageStyle() |
|
|
|