From f15ca1d7e5811abb2ef285e60942fcd0c57b20be Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Fri, 18 Aug 2023 10:08:21 +0200 Subject: [PATCH] Videos: Improve code comments in index_mediafile.go #926 #3588 #3559 Signed-off-by: Michael Mayer --- internal/photoprism/index_mediafile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/photoprism/index_mediafile.go b/internal/photoprism/index_mediafile.go index 5e3d239f7..7dbeffdc4 100644 --- a/internal/photoprism/index_mediafile.go +++ b/internal/photoprism/index_mediafile.go @@ -648,7 +648,7 @@ func (ind *Index) UserMediaFile(m *MediaFile, o IndexOptions, originalName, phot } } - // Sets the video dimensions from the primary image if it could not be determined from the video metadata. + // Set the video dimensions from the primary image if it could not be determined from the video metadata. // If there is no primary image yet, File.UpdateVideoInfos() sets the fields in retrospect when there is one. if file.FileWidth == 0 && primaryFile.FileWidth > 0 { file.FileWidth = primaryFile.FileWidth @@ -657,7 +657,7 @@ func (ind *Index) UserMediaFile(m *MediaFile, o IndexOptions, originalName, phot file.FilePortrait = primaryFile.FilePortrait } - // Set the video appearance from the primary file. In a future version, a still image extracted from the + // Set the video appearance from the primary image. In a future version, a still image extracted from the // video could be used for this purpose if the primary image is not directly derived from the video file, // e.g. in live photo stacks, see https://github.com/photoprism/photoprism/pull/3588#issuecomment-1683429455 if primaryFile.FileDiff > 0 {