1
Fork 0

Merge pull request #822 from john-dev/master

Prepend missing key CreationDate to createDateKeys
This commit is contained in:
Viktor Strate Kløvedal 2023-03-21 15:17:27 +01:00 committed by GitHub
commit 30c1b2a152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ func (p *externalExifParser) ParseExif(media_path string) (returnExif *models.Me
} }
//Get time of photo //Get time of photo
createDateKeys := []string{"DateTimeOriginal", "CreateDate", "TrackCreateDate", "MediaCreateDate", "FileCreateDate", "ModifyDate", "TrackModifyDate", "MediaModifyDate", "FileModifyDate"} createDateKeys := []string{"CreationDate", "DateTimeOriginal", "CreateDate", "TrackCreateDate", "MediaCreateDate", "FileCreateDate", "ModifyDate", "TrackModifyDate", "MediaModifyDate", "FileModifyDate"}
for _, createDateKey := range createDateKeys { for _, createDateKey := range createDateKeys {
date, err := fileInfo.GetString(createDateKey) date, err := fileInfo.GetString(createDateKey)
if err == nil { if err == nil {