summaryrefslogtreecommitdiff
path: root/libmat/exiftool.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat/exiftool.py')
-rw-r--r--libmat/exiftool.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmat/exiftool.py b/libmat/exiftool.py
index 83513b4..3bc18b0 100644
--- a/libmat/exiftool.py
+++ b/libmat/exiftool.py
@@ -47,9 +47,10 @@ class ExiftoolStripper(parser.GenericParser):
47 field name : value 47 field name : value
48 field name : value 48 field name : value
49 """ 49 """
50 output = str(subprocess.Popen(['exiftool', self.filename], 50 output = subprocess.Popen(['exiftool', self.filename],
51 stdout=subprocess.PIPE).communicate()[0]) 51 stdout=subprocess.PIPE).communicate()[0]
52 meta = {} 52 meta = {}
53 output = output.decode('utf-8')
53 for i in output.split('\n')[:-1]: # chop last char ('\n') 54 for i in output.split('\n')[:-1]: # chop last char ('\n')
54 key = i.split(':')[0].strip() 55 key = i.split(':')[0].strip()
55 if key not in self.allowed: 56 if key not in self.allowed: