mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2024-12-29 10:56:10 +00:00
💀
This commit is contained in:
parent
94ea3a1f30
commit
c0f95e134c
|
@ -67,14 +67,17 @@ class Metadata:
|
|||
}
|
||||
|
||||
# Thanks chatGPT xP
|
||||
# pylint: disable=E0602
|
||||
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])(value),
|
||||
'formatted': (
|
||||
getattr(helpers, mapping_val[key][1]) # pylint: disable=E0602
|
||||
(value)
|
||||
),
|
||||
}
|
||||
else:
|
||||
exif[mapping_name][mapping_val[key][0]] = {
|
||||
|
|
Loading…
Reference in a new issue