More formats support (#161)
* Added support for ODT and FODT file formats. * Improved `OdtParser` to support enhanced document formatting and external assets * Added support for viewing CSV, TSV, JSON, XML, logs, and source code files by dynamically converting them to HTML.
This commit is contained in:
parent
6a60aec0ef
commit
291504fd90
8 changed files with 652 additions and 76 deletions
|
|
@ -22,6 +22,8 @@ class Fb2Parser(private val context: Context) {
|
|||
originalBookNameHint: String,
|
||||
parseContent: Boolean = true
|
||||
): EpubBook = withContext(Dispatchers.IO) {
|
||||
File(context.cacheDir, "imported_file_$bookId").deleteRecursively()
|
||||
|
||||
val extractionDir = File(context.cacheDir, "imported_file_$bookId").apply {
|
||||
if (!exists()) mkdirs()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue