From 4fdf80d7649fe168f16641c48d749819c9c56701 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 27 Dec 2012 16:30:52 +0100 Subject: Add some comments to exiftool.py --- MAT/exiftool.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'MAT/exiftool.py') diff --git a/MAT/exiftool.py b/MAT/exiftool.py index eeefcb8..8557a61 100644 --- a/MAT/exiftool.py +++ b/MAT/exiftool.py @@ -60,7 +60,10 @@ class ExiftoolStripper(parser.GenericParser): def get_meta(self): ''' - Return every harmful meta with help of exiftool + Return every harmful meta with help of exiftool. + Exiftool output looks like this: + field name : value + field name : value ''' out = subprocess.Popen(['exiftool', self.filename], stdout=subprocess.PIPE).communicate()[0] @@ -69,7 +72,7 @@ class ExiftoolStripper(parser.GenericParser): for i in out[:-1]: key = i.split(':')[0].strip() if key not in self.allowed: - meta[key] = i.split(':')[1].strip() + meta[key] = i.split(':')[1].strip() # add the field name to the metadata set return meta -- cgit v1.3