mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
fix bug 2 of #838 : If the xmp file does not include the file extension of the tagged file, no keywords and ratings are shown in PiGallery's frontend.
This commit is contained in:
parent
75e4ed70b6
commit
3ee030d8ba
@ -128,7 +128,7 @@ export class MetadataLoader {
|
||||
|
||||
try {
|
||||
// search for sidecar and merge metadata
|
||||
const fullPathWithoutExt = path.parse(fullPath).name;
|
||||
const fullPathWithoutExt = path.join(path.parse(fullPath).dir, path.parse(fullPath).name);
|
||||
const sidecarPaths = [
|
||||
fullPath + '.xmp',
|
||||
fullPath + '.XMP',
|
||||
@ -524,7 +524,7 @@ export class MetadataLoader {
|
||||
|
||||
try {
|
||||
// search for sidecar and merge metadata
|
||||
const fullPathWithoutExt = path.parse(fullPath).name;
|
||||
const fullPathWithoutExt = path.join(path.parse(fullPath).dir, path.parse(fullPath).name);
|
||||
const sidecarPaths = [
|
||||
fullPath + '.xmp',
|
||||
fullPath + '.XMP',
|
||||
|
Loading…
Reference in New Issue
Block a user