mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
indexing error fix
This commit is contained in:
parent
b096a800fe
commit
7a4a813b31
@ -40,6 +40,7 @@ export class IndexingManager implements IIndexingManager {
|
|||||||
}
|
}
|
||||||
if (createThumbnails) {
|
if (createThumbnails) {
|
||||||
for (let i = 0; i < scanned.media.length; i++) {
|
for (let i = 0; i < scanned.media.length; i++) {
|
||||||
|
try {
|
||||||
const media = scanned.media[i];
|
const media = scanned.media[i];
|
||||||
const mPath = path.join(ProjectPath.ImageFolder, media.directory.path, media.directory.name, media.name);
|
const mPath = path.join(ProjectPath.ImageFolder, media.directory.path, media.directory.name, media.name);
|
||||||
const thPath = path.join(ProjectPath.ThumbnailFolder,
|
const thPath = path.join(ProjectPath.ThumbnailFolder,
|
||||||
@ -55,6 +56,10 @@ export class IndexingManager implements IIndexingManager {
|
|||||||
makeSquare: false,
|
makeSquare: false,
|
||||||
qualityPriority: Config.Server.thumbnail.qualityPriority
|
qualityPriority: Config.Server.thumbnail.qualityPriority
|
||||||
}, Config.Server.thumbnail.processingLibrary);
|
}, Config.Server.thumbnail.processingLibrary);
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
Logger.error(LOG_TAG, 'Error during indexing job: ' + e.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user