From e4903ea201ac6b1bd35e9e8cc851884edd676e85 Mon Sep 17 00:00:00 2001 From: Roger McCarty Date: Thu, 26 Oct 2023 09:08:03 -0700 Subject: [PATCH] Update Teekesselchen.lua Use raw metadata value instead of formatted value for comparison --- src/Teekesselchen.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Teekesselchen.lua b/src/Teekesselchen.lua index e2327a3..54adf1f 100644 --- a/src/Teekesselchen.lua +++ b/src/Teekesselchen.lua @@ -399,6 +399,9 @@ local function comperatorEnv(name, comp, mandatory) --@mno strip extension of filename to get base file name if name=="fileName" then value = string.sub(photo:getFormattedMetadata(name),1,-5) --@mno strip the last 4 chracters of the string + end + if name=="fileSize" then + value = photo:getRawMetadata(name) end -- nil is not a valid key, thus, we take a dummy value if not value then