Beispiel #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] = utils.to_unicode(value)
Beispiel #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[family][group][tag] = utils.to_unicode(value)
Beispiel #3
0
 def _get_comment(self):
     """Extract comment."""
     if self.metadata.get_comment():
         self.results["comment"] = utils.to_unicode(self.metadata.get_comment())
Beispiel #4
0
 def _get_comment(self):
     """Extract comment."""
     if self.metadata.get_comment():
         self.results["comment"] = utils.to_unicode(
             self.metadata.get_comment())