🔧 Auto-watcher-importer now batches jobs in the queue
This commit is contained in:
@@ -147,10 +147,12 @@ export default class ApiService extends Service {
|
||||
basePathToWalk: path,
|
||||
});
|
||||
console.log(walkedFolder);
|
||||
await this.broker.call(
|
||||
"import.processAndImportToDB",
|
||||
{ walkedFolder }
|
||||
);
|
||||
await this.broker.call("libraryqueue.enqueue", {
|
||||
fileObject: {
|
||||
filePath: walkedFolder[0].filePath,
|
||||
size: walkedFolder[0].fileSize,
|
||||
},
|
||||
});
|
||||
} else {
|
||||
setTimeout(
|
||||
checkFileCopyComplete,
|
||||
|
||||
@@ -55,8 +55,6 @@ export const extractCoverFromFile2 = async (
|
||||
fileObject: any
|
||||
): Promise<any> => {
|
||||
try {
|
||||
console.log("ASDASD!@#!#!@#!@#");
|
||||
console.log(fileObject);
|
||||
const { filePath, fileSize} = fileObject;
|
||||
|
||||
const calibre = new Calibre();
|
||||
|
||||
Reference in New Issue
Block a user