|
|
@ -182,9 +182,9 @@ object BookHelp { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
fun getContent(book: Book, bookChapter: BookChapter): String? { |
|
|
|
fun getContent(book: Book, bookChapter: BookChapter): String? { |
|
|
|
if (book.isLocalTxt() || book.isUmd()) { |
|
|
|
if (book.isLocalTxt() || book.isUmd()) { |
|
|
|
return LocalBook.getContext(book, bookChapter) |
|
|
|
return LocalBook.getContent(book, bookChapter) |
|
|
|
} else if (book.isEpub() && !hasContent(book, bookChapter)) { |
|
|
|
} else if (book.isEpub() && !hasContent(book, bookChapter)) { |
|
|
|
val string = LocalBook.getContext(book, bookChapter) |
|
|
|
val string = LocalBook.getContent(book, bookChapter) |
|
|
|
string?.let { |
|
|
|
string?.let { |
|
|
|
FileUtils.createFileIfNotExist( |
|
|
|
FileUtils.createFileIfNotExist( |
|
|
|
downloadDir, |
|
|
|
downloadDir, |
|
|
|