From 4fe8190b571f52b66d8cb3c8cc3b32e0e243b200 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Thu, 16 Apr 2020 16:11:47 -0700 Subject: [PATCH] Added raw details to PhotoInfo json() and __str__() --- osxphotos/photoinfo.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osxphotos/photoinfo.py b/osxphotos/photoinfo.py index 63247744..2a1f996e 100644 --- a/osxphotos/photoinfo.py +++ b/osxphotos/photoinfo.py @@ -1027,6 +1027,9 @@ class PhotoInfo: "hdr": self.hdr, "selfie": self.selfie, "panorama": self.panorama, + "has_raw": self.has_raw, + "uti_raw": self.uti_raw, + "path_raw": self.path_raw, } return yaml.dump(info, sort_keys=False) @@ -1073,6 +1076,9 @@ class PhotoInfo: "hdr": self.hdr, "selfie": self.selfie, "panorama": self.panorama, + "has_raw": self.has_raw, + "uti_raw": self.uti_raw, + "path_raw": self.path_raw, } return json.dumps(pic)