🔧 Fix for a missing key in IFolderData
This commit is contained in:
@@ -128,7 +128,7 @@ export default class ApiService extends Service {
|
||||
},
|
||||
}
|
||||
);
|
||||
const fileCopyDelaySeconds = 10;
|
||||
const fileCopyDelaySeconds = 30;
|
||||
const checkFileCopyComplete = (path, previousPath) => {
|
||||
fs.stat(path, async (err, stat) => {
|
||||
if (err) {
|
||||
@@ -146,11 +146,10 @@ export default class ApiService extends Service {
|
||||
await broker.call("import.walkFolders", {
|
||||
basePathToWalk: path,
|
||||
});
|
||||
console.log(walkedFolder);
|
||||
await this.broker.call("libraryqueue.enqueue", {
|
||||
fileObject: {
|
||||
filePath: walkedFolder[0].filePath,
|
||||
size: walkedFolder[0].fileSize,
|
||||
fileSize: walkedFolder[0].fileSize,
|
||||
},
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -55,7 +55,7 @@ export const extractCoverFromFile2 = async (
|
||||
fileObject: any
|
||||
): Promise<any> => {
|
||||
try {
|
||||
const { filePath, fileSize} = fileObject;
|
||||
const { filePath, fileSize } = fileObject;
|
||||
|
||||
const calibre = new Calibre();
|
||||
console.info(`Initiating extraction process for path ${filePath}`);
|
||||
|
||||
Reference in New Issue
Block a user