Skip to content

Commit 593f804

Browse files
authored
Merge pull request #550 from wpferguson/fix_autogrouper_use_of_group_leader
Fix AutoGrouper group mechanics
2 parents 89973b3 + 914a17f commit 593f804

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/AutoGrouper.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,11 @@ local function main(on_collection)
132132
for i, image in ipairs(images) do
133133
if i == 1 then
134134
prev_image = image
135+
image:make_group_leader()
135136
elseif string.match(image.exif_datetime_taken, '[%d]') ~= nil then --make sure current image has a timestamp, if so check if it is within the user specified gap value and add to group
136137
local curr_image = image
137138
if GetTimeDiff(curr_image, prev_image) <= GUI.gap.value then
138-
images[i]:group_with(images[i-1])
139+
images[i]:group_with(images[i-1].group_leader)
139140
end
140141
prev_image = curr_image
141142
end

0 commit comments

Comments
 (0)