Blackened

This commit is contained in:
jtc42 2019-11-15 16:52:57 +00:00
parent 0907d013cd
commit 76af0891e9
14 changed files with 95 additions and 63 deletions

View file

@ -35,7 +35,9 @@ def pull_usercomment_dict(filepath):
return json.loads(exif_dict["Exif"][37510].decode())
except json.decoder.JSONDecodeError:
# TODO: Remove YAML support in a later version
logging.warning(f"Capture {filepath} has metadata stored in YAML format. This is now deprecated in favour of JSON.")
logging.warning(
f"Capture {filepath} has metadata stored in YAML format. This is now deprecated in favour of JSON."
)
return yaml.load(exif_dict["Exif"][37510].decode())
else:
return None
@ -227,7 +229,6 @@ class CaptureObject(object):
# Insert exif into file
piexif.insert(exif_bytes, self.file)
@property
def metadata(self) -> dict:
"""