diff --git a/internal/meta/data.go b/internal/meta/data.go index cf51ab1b1..2de2da15f 100644 --- a/internal/meta/data.go +++ b/internal/meta/data.go @@ -8,8 +8,8 @@ import ( // Data represents image meta data. type Data struct { UniqueID string `meta:"ImageUniqueID"` - TakenAt time.Time `meta:"DateTimeOriginal,CreateDate,MediaCreateDate,DateTime"` - TakenAtLocal time.Time `meta:"DateTimeOriginal,CreateDate,MediaCreateDate,DateTime"` + TakenAt time.Time `meta:"DateTimeOriginal,CreateDate,MediaCreateDate,DateTimeDigitized,DateTime"` + TakenAtLocal time.Time `meta:"DateTimeOriginal,CreateDate,MediaCreateDate,DateTimeDigitized,DateTime"` TimeZone string `meta:"-"` Duration time.Duration `meta:"Duration,MediaDuration,TrackDuration"` Codec string `meta:"CompressorID,Compression"` diff --git a/internal/meta/exif.go b/internal/meta/exif.go index 2ad34f553..d9695f323 100644 --- a/internal/meta/exif.go +++ b/internal/meta/exif.go @@ -315,6 +315,8 @@ func (data *Data) Exif(fileName string) (err error) { if value, ok := tags["DateTimeOriginal"]; ok && ValidDateTime(value) { takenAt = value + } else if value, ok := tags["DateTimeDigitized"]; ok && ValidDateTime(value) { + takenAt = value } else if value, ok := tags["CreateDate"]; ok && ValidDateTime(value) { takenAt = value } else if value, ok := tags["DateTime"]; ok && ValidDateTime(value) {