From 6d0d3a161c72ba483c6ec51312805e69fcca47d7 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 23 Oct 2011 17:20:37 +0200 Subject: Correct handling of spaces in filenames (intrigeri) --- mat/exiftool.py | 6 +++--- mat/office.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mat/exiftool.py b/mat/exiftool.py index f1bc350..18d603e 100644 --- a/mat/exiftool.py +++ b/mat/exiftool.py @@ -31,13 +31,13 @@ class ExiftoolStripper(parser.GenericParser): Remove all metadata with help of exiftool ''' if self.backup: - process = subprocess.Popen(['exiftool', '-all=', - '-o %s' % self.output, self.filename], + process = subprocess.Popen(['exiftool', '-All', + '-out', self.output, self.filename], stdout=open('/dev/null')) process.wait() else: process = subprocess.Popen(['exiftool', '-overwrite_original', - '-all=', self.filename], stdout=open('/dev/null')) + '-All', self.filename], stdout=open('/dev/null')) process.wait() def is_clean(self): diff --git a/mat/office.py b/mat/office.py index b8a235f..30b1669 100644 --- a/mat/office.py +++ b/mat/office.py @@ -170,13 +170,13 @@ class PdfStripper(parser.GenericParser): try: import exiftool if self.backup: - process = subprocess.Popen(['exiftool', '-all=', - '-o %s' % self.output, self.filename], + process = subprocess.Popen(['exiftool', '-All', + '-out', self.output, self.filename], stdout=open('/dev/null')) process.wait() else: process = subprocess.Popen(['exiftool', '-overwrite_original', - '-all=', self.filename], stdout=open('/dev/null')) + '-All', self.filename], stdout=open('/dev/null')) process.wait() except: try: -- cgit v1.3