Skip to content

Commit daa0877

Browse files
authored
Merge pull request #541 from koto/patch-1
Fixed variable substitutions
2 parents c70ebf4 + da275c2 commit daa0877

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/dtutils/string.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,11 +744,11 @@ function dtutils_string.build_substitute_list(image, sequence, variable_string,
744744
string.match(image.exif_datetime_taken, "(%d+):(%d+):(%d+) (%d+):(%d+):(%d+)$")
745745
end
746746

747-
local version_multi = #image:get_group_members() > 1 and image.version or ""
747+
local version_multi = #image:get_group_members() > 1 and image.duplicate_index or ""
748748

749-
local replacements = {image.film.path, -- ROLL.NAME
749+
local replacements = {dtutils_string.get_basename(image.film.path),-- ROLL.NAME
750750
image.path, -- FILE.FOLDER
751-
image.filename, -- FILE.NAME
751+
dtutils_string.get_basename(image.filename),-- FILE.NAME
752752
dtutils_string.get_filetype(image.filename),-- FILE.EXTENSION
753753
image.id, -- ID
754754
image.duplicate_index, -- VERSION

0 commit comments

Comments
 (0)