Skip to content

Commit

Permalink
fix bug 2 of bpatrik#838 : If the xmp file does not include the file …
Browse files Browse the repository at this point in the history
…extension of the tagged file, no keywords and ratings are shown in PiGallery's frontend.
  • Loading branch information
kagahd committed Feb 26, 2024
1 parent 75e4ed7 commit 3ee030d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/model/fileaccess/MetadataLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 3ee030d

Please sign in to comment.