Добавлена частичная поддержка формата Djvu
This commit is contained in:
@@ -15,6 +15,7 @@ class ConvertBase {
|
||||
this.calibrePath = `${config.dataDir}/calibre/ebook-convert`;
|
||||
this.sofficePath = '/usr/bin/soffice';
|
||||
this.pdfToHtmlPath = '/usr/bin/pdftohtml';
|
||||
this.ddjvuPath = '/usr/bin/ddjvu';
|
||||
}
|
||||
|
||||
async run(data, opts) {// eslint-disable-line no-unused-vars
|
||||
@@ -30,6 +31,9 @@ class ConvertBase {
|
||||
|
||||
if (!await fs.pathExists(this.pdfToHtmlPath))
|
||||
throw new Error('Внешний конвертер pdftohtml не найден');
|
||||
|
||||
if (!await fs.pathExists(this.ddjvuPath))
|
||||
throw new Error('Внешний конвертер ddjvu не найден');
|
||||
}
|
||||
|
||||
async execConverter(path, args, onData, abort) {
|
||||
|
||||
Reference in New Issue
Block a user