This commit is contained in:
Michał Gdula 2023-04-08 19:38:16 +00:00
parent 359ab66a0a
commit 5cb8c1dd13
3 changed files with 18 additions and 18 deletions

View file

@ -68,17 +68,17 @@ class Metadata:
}
# Thanks chatGPT xP
# the helper function works, so not sure why it triggers pylint
for key, value in encoded_exif.items():
for mapping_name, mapping_val in EXIF_MAPPING:
if key in mapping_val:
if len(mapping_val[key]) == 2:
# the helper function works, so not sure why it triggers pylint
exif[mapping_name][mapping_val[key][0]] = {
"raw": value,
"formatted": (
getattr(
helpers, mapping_val[key][1]
)( # pylint: disable=E0602
helpers, mapping_val[key][1] # pylint: disable=E0602
)(
value
)
),