Skip to content
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

Merged
Merged

Conversation

rderimay
Copy link
Contributor

@rderimay rderimay commented Jan 9, 2017

Added a new method ExifUtils.readMetaDataAsTable which return a lua
table with all exif keys and values
Adapted ExfiUtils.findFirstMatchingValue accordingly
Removed unneeded methods

rderimay added 5 commits January 8, 2017 19:22
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
Copy link
Owner

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)?

Copy link
Contributor Author

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
Copy link
Owner

@musselwhizzle musselwhizzle Jan 9, 2017

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

Copy link
Contributor Author

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 ?

Copy link
Owner

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.

@musselwhizzle
Copy link
Owner

nice work. Great use of a branch

@musselwhizzle
Copy link
Owner

approved. will give you time to push/respond if you want before i merge.

@musselwhizzle musselwhizzle merged commit c740494 into musselwhizzle:master Jan 9, 2017
@musselwhizzle
Copy link
Owner

merged. nice work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants