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