Merge branch 'develop'
This commit is contained in:
commit
3a53d516ce
1 changed files with 2 additions and 1 deletions
|
@ -165,8 +165,9 @@ func (i *Indexer) indexMediaFile(mediaFile *MediaFile) string {
|
||||||
photo.PhotoExposure = mediaFile.Exposure()
|
photo.PhotoExposure = mediaFile.Exposure()
|
||||||
}
|
}
|
||||||
|
|
||||||
if photo.TakenAt.IsZero() && photo.TakenAtChanged == false {
|
if photo.TakenAt.IsZero() || photo.TakenAtLocal.IsZero() {
|
||||||
photo.TakenAt = mediaFile.DateCreated()
|
photo.TakenAt = mediaFile.DateCreated()
|
||||||
|
photo.TakenAtLocal = photo.TakenAt
|
||||||
}
|
}
|
||||||
|
|
||||||
if location, err := mediaFile.Location(); err == nil {
|
if location, err := mediaFile.Location(); err == nil {
|
||||||
|
|
Loading…
Reference in a new issue