Fix SOI not found error (#1576)
This commit is contained in:
commit
699915057f
2 changed files with 13 additions and 1 deletions
|
@ -268,6 +268,16 @@ class ClipServiceImpl {
|
|||
);
|
||||
return;
|
||||
}
|
||||
const extension = enteFile.metadata.title.split('.').pop();
|
||||
if (!extension || !['jpg', 'jpeg'].includes(extension)) {
|
||||
addLogLine(
|
||||
`skipping non jpg file for clip embedding extraction file: ${enteFile.metadata.title} fileID: ${enteFile.id}`
|
||||
);
|
||||
return;
|
||||
}
|
||||
addLogLine(
|
||||
`queuing up for local clip embedding extraction for file: ${enteFile.metadata.title} fileID: ${enteFile.id}`
|
||||
);
|
||||
try {
|
||||
await this.liveEmbeddingExtractionQueue.add(async () => {
|
||||
const embedding = await this.extractLocalFileClipImageEmbedding(
|
||||
|
|
|
@ -361,7 +361,9 @@ class UploadManager {
|
|||
try {
|
||||
eventBus.emit(Events.FILE_UPLOADED, {
|
||||
enteFile: decryptedFile,
|
||||
localFile: fileWithCollection.file,
|
||||
localFile:
|
||||
fileWithCollection.file ??
|
||||
fileWithCollection.livePhotoAssets.image,
|
||||
});
|
||||
} catch (e) {
|
||||
logError(e, 'Error in fileUploaded handlers');
|
||||
|
|
Loading…
Add table
Reference in a new issue