mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Make text more readable
Slightly speed up the metadata parsing
This commit is contained in:
parent
696e72e3e8
commit
454d1f89c8
3 changed files with 13 additions and 13 deletions
|
@ -79,15 +79,16 @@ class Metadata:
|
|||
exif[mapping_name][mapping_val[key][0]] = {
|
||||
'raw': value,
|
||||
}
|
||||
continue
|
||||
|
||||
# Remove empty keys
|
||||
if len(exif['Photographer']) == 0:
|
||||
if not exif['Photographer']:
|
||||
del exif['Photographer']
|
||||
if len(exif['Camera']) == 0:
|
||||
if not exif['Camera']:
|
||||
del exif['Camera']
|
||||
if len(exif['Software']) == 0:
|
||||
if not exif['Software']:
|
||||
del exif['Software']
|
||||
if len(exif['File']) == 0:
|
||||
if not exif['File']:
|
||||
del exif['File']
|
||||
|
||||
return exif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue