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] = to_unicode(value) # Add key description to database. utils.add_metadata_description(key, self.metadata.get_tag_description(key))
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["metadata"][family][group][tag] = to_unicode(value) # Add key description to database. add_metadata_description(key, self.metadata.get_tag_description(key))
def _get_comment(self): """Extract comment.""" if self.metadata.get_comment(): self.results["comment"] = to_unicode(self.metadata.get_comment())
def _get_comment(self): """Extract comment.""" if self.metadata.get_comment(): self.results["metadata"]["comment"] = to_unicode(self.metadata.get_comment())