Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 def _get_comment(self):
     """Extract comment."""
     if self.metadata.get_comment():
         self.results["comment"] = to_unicode(self.metadata.get_comment())
Esempio n. 4
0
 def _get_comment(self):
     """Extract comment."""
     if self.metadata.get_comment():
         self.results["metadata"]["comment"] = to_unicode(self.metadata.get_comment())