def _add_key(self, key, value): """Add a metadata key to results. @param key: key in full format (example: Exif.Photo.Size) @param value: value """ family, group, tag = key.split(".") # Skipping keys wih empty values, they will not appear in report. if value and value != "" and value != "None": self.results[family][group][tag] = utils.to_unicode(value)
def _get_comment(self): """Extract comment.""" if self.metadata.get_comment(): self.results["comment"] = utils.to_unicode(self.metadata.get_comment())
def _get_comment(self): """Extract comment.""" if self.metadata.get_comment(): self.results["comment"] = utils.to_unicode( self.metadata.get_comment())