feat(server): support lightroom tags (#12288)

This commit is contained in:
Jason Rasmussen
2024-09-03 18:25:09 -04:00
committed by GitHub
parent a96f41aa11
commit 7ca53ba507
2 changed files with 55 additions and 0 deletions
+10
View File
@@ -355,6 +355,16 @@ export class MetadataService {
const tags: unknown[] = [];
if (exifTags.TagsList) {
tags.push(...exifTags.TagsList);
} else if (exifTags.HierarchicalSubject) {
tags.push(
exifTags.HierarchicalSubject.map((tag) =>
tag
// convert | to /
.replaceAll('/', '<PLACEHOLDER>')
.replaceAll('|', '/')
.replaceAll('<PLACEHOLDER>', '|'),
),
);
} else if (exifTags.Keywords) {
let keywords = exifTags.Keywords;
if (!Array.isArray(keywords)) {