From 64b667be5d6b36d17839482593ccf2207af14ac9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 29 Aug 2016 22:12:40 +0200 Subject: Python3, now with less features I want to release a new version ASAP, so lets ditch some features for now. --- libmat/exiftool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libmat/exiftool.py') 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): field name : value field name : value """ - output = str(subprocess.Popen(['exiftool', self.filename], - stdout=subprocess.PIPE).communicate()[0]) + output = subprocess.Popen(['exiftool', self.filename], + stdout=subprocess.PIPE).communicate()[0] meta = {} + output = output.decode('utf-8') for i in output.split('\n')[:-1]: # chop last char ('\n') key = i.split(':')[0].strip() if key not in self.allowed: -- cgit v1.3