mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-01 12:26:13 +00:00
💀
This commit is contained in:
parent
94ea3a1f30
commit
c0f95e134c
|
@ -67,14 +67,17 @@ class Metadata:
|
||||||
}
|
}
|
||||||
|
|
||||||
# Thanks chatGPT xP
|
# Thanks chatGPT xP
|
||||||
# pylint: disable=E0602
|
|
||||||
for key, value in encoded_exif.items():
|
for key, value in encoded_exif.items():
|
||||||
for mapping_name, mapping_val in EXIF_MAPPING:
|
for mapping_name, mapping_val in EXIF_MAPPING:
|
||||||
if key in mapping_val:
|
if key in mapping_val:
|
||||||
if len(mapping_val[key]) == 2:
|
if len(mapping_val[key]) == 2:
|
||||||
|
# the helper function works, so not sure why it triggers pylint
|
||||||
exif[mapping_name][mapping_val[key][0]] = {
|
exif[mapping_name][mapping_val[key][0]] = {
|
||||||
'raw': value,
|
'raw': value,
|
||||||
'formatted': getattr(helpers, mapping_val[key][1])(value),
|
'formatted': (
|
||||||
|
getattr(helpers, mapping_val[key][1]) # pylint: disable=E0602
|
||||||
|
(value)
|
||||||
|
),
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
exif[mapping_name][mapping_val[key][0]] = {
|
exif[mapping_name][mapping_val[key][0]] = {
|
||||||
|
|
Loading…
Reference in a new issue