1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Allow for "xap" ns prefix instead of "xmp"

This commit is contained in:
Martin Kampas 2024-03-05 12:57:55 +01:00
parent 03e0822181
commit da0b7d8e21

View File

@ -170,6 +170,10 @@ export class MetadataLoader {
}
}
}
if (Object.hasOwn(sidecarData, 'xap')) {
(sidecarData as any)['xmp'] = (sidecarData as any)['xap'];
delete (sidecarData as any)['xap'];
}
if ((sidecarData as SideCar).xmp !== undefined) {
if ((sidecarData as SideCar).xmp.Rating !== undefined) {
metadata.rating = (sidecarData as SideCar).xmp.Rating;
@ -642,6 +646,10 @@ export class MetadataLoader {
}
}
}
if (Object.hasOwn(sidecarData, 'xap')) {
(sidecarData as any)['xmp'] = (sidecarData as any)['xap'];
delete (sidecarData as any)['xap'];
}
if ((sidecarData as SideCar).xmp !== undefined) {
if ((sidecarData as SideCar).xmp.Rating !== undefined) {
metadata.rating = (sidecarData as SideCar).xmp.Rating;