mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Loading faces even if override keywords are disabled. fixes #293
This commit is contained in:
parent
cdcd246fb2
commit
57ac433c46
@ -295,15 +295,17 @@ export class MetadataLoader {
|
|||||||
faces.push({name, box});
|
faces.push({name, box});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Config.Client.Faces.keywordsToPersons && faces.length > 0) {
|
if (faces.length > 0) {
|
||||||
metadata.faces = faces; // save faces
|
metadata.faces = faces; // save faces
|
||||||
// remove faces from keywords
|
if (Config.Client.Faces.keywordsToPersons) {
|
||||||
metadata.faces.forEach(f => {
|
// remove faces from keywords
|
||||||
const index = metadata.keywords.indexOf(f.name);
|
metadata.faces.forEach(f => {
|
||||||
if (index !== -1) {
|
const index = metadata.keywords.indexOf(f.name);
|
||||||
metadata.keywords.splice(index, 1);
|
if (index !== -1) {
|
||||||
}
|
metadata.keywords.splice(index, 1);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user