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:
parent
03e0822181
commit
da0b7d8e21
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user