From 55819dba9b76454d2c2c35200b11497d090a1896 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 13 May 2020 21:06:34 +0200 Subject: [PATCH] Backend: Read JSON from sidecar file #4 #243 Signed-off-by: Michael Mayer --- internal/photoprism/metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/photoprism/metadata.go b/internal/photoprism/metadata.go index 96ec7e727..82b7de468 100644 --- a/internal/photoprism/metadata.go +++ b/internal/photoprism/metadata.go @@ -13,7 +13,7 @@ func (m *MediaFile) MetaData() (result meta.Data, err error) { m.metaDataOnce.Do(func() { if jsonFile := fs.TypeJson.Find(m.FileName(), false); jsonFile == "" { log.Debugf("mediafile: no json sidecar file found for %s", txt.Quote(filepath.Base(m.FileName()))) - } else if err := m.metaData.JSON(m.FileName()); err != nil { + } else if err := m.metaData.JSON(jsonFile); err != nil { log.Warn(err) }