From fadb19ec64be5a280e2ecb10f0a90b4da296ba2e Mon Sep 17 00:00:00 2001 From: theresa Date: Thu, 4 Feb 2021 14:39:18 +0100 Subject: [PATCH] Metadata: Add copyright to metadata --- internal/photoprism/index_mediafile.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/photoprism/index_mediafile.go b/internal/photoprism/index_mediafile.go index e6fc777f7..fd094a73e 100644 --- a/internal/photoprism/index_mediafile.go +++ b/internal/photoprism/index_mediafile.go @@ -370,6 +370,7 @@ func (ind *Index) MediaFile(m *MediaFile, o IndexOptions, originalName string) ( details.SetNotes(metaData.Notes, entity.SrcMeta) details.SetSubject(metaData.Subject, entity.SrcMeta) details.SetArtist(metaData.Artist, entity.SrcMeta) + details.SetCopyright(metaData.Copyright, entity.SrcMeta) if metaData.HasDocumentID() && photo.UUID == "" { log.Infof("index: %s has document_id %s", logName, txt.Quote(metaData.DocumentID)) @@ -442,6 +443,7 @@ func (ind *Index) MediaFile(m *MediaFile, o IndexOptions, originalName string) ( details.SetNotes(metaData.Notes, entity.SrcMeta) details.SetSubject(metaData.Subject, entity.SrcMeta) details.SetArtist(metaData.Artist, entity.SrcMeta) + details.SetCopyright(metaData.Copyright, entity.SrcMeta) if metaData.HasDocumentID() && photo.UUID == "" { log.Infof("index: %s has document_id %s", logName, txt.Quote(metaData.DocumentID)) @@ -564,6 +566,7 @@ func (ind *Index) MediaFile(m *MediaFile, o IndexOptions, originalName string) ( details.SetNotes(metaData.Notes, entity.SrcMeta) details.SetSubject(metaData.Subject, entity.SrcMeta) details.SetArtist(metaData.Artist, entity.SrcMeta) + details.SetCopyright(metaData.Copyright, entity.SrcMeta) if metaData.HasDocumentID() && photo.UUID == "" { log.Debugf("index: %s has document_id %s", logName, txt.Quote(metaData.DocumentID))