-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX #57 #59
FIX #57 #59
Conversation
Added a new method ExifUtils.readMetaDataAsTable which return a lua table with all exif keys and values Adapted ExfiUtils.findFirstMatchingValue accordingly
local value = nil | ||
|
||
for key,keyword in pairs(keys) do | ||
value = ExifUtils.findValue(metaData, keyword) | ||
for key, keyword in pairs(keys) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
this is typically a "key -> value" loop similar to a HashMap. Mind calling k,v or key, value (and renaming the prop on line 74)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok no worries
value = ExifUtils.findValue(metaData, keyword) | ||
for key, keyword in pairs(keys) do | ||
value = metaDataTable[keyword] | ||
if value == nil then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we simplify this and remove the logging ifs
if value ~= nil and value ~= "(none)" then
return value
end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you want me to simplify there ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's fine. you can keep the log if you really want it.
nice work. Great use of a branch |
approved. will give you time to push/respond if you want before i merge. |
merged. nice work. |
Added a new method ExifUtils.readMetaDataAsTable which return a lua
table with all exif keys and values
Adapted ExfiUtils.findFirstMatchingValue accordingly
Removed unneeded methods