summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2011-11-17 19:07:18 +0100
committerjvoisin2011-11-17 19:07:18 +0100
commitf0e8e2d894ae4fcc6e0f87741dfb8511f52fc0c1 (patch)
tree8f67fb300756935666ae515ad072408f588a23d5
parent8899af3e1e3a7d5e098feaaae824413fdc42da4a (diff)
Exiftool is now quiet too
-rw-r--r--mat/exiftool.py4
-rw-r--r--mat/office.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/mat/exiftool.py b/mat/exiftool.py
index c6c1ada..758a094 100644
--- a/mat/exiftool.py
+++ b/mat/exiftool.py
@@ -33,14 +33,14 @@ class ExiftoolStripper(parser.GenericParser):
33 try: 33 try:
34 if self.backup: 34 if self.backup:
35 # Note: '-All=' must be followed by a known exiftool option. 35 # Note: '-All=' must be followed by a known exiftool option.
36 process = subprocess.Popen(['exiftool', '-All=', 36 process = subprocess.Popen(['exiftool', '-m', '-All=',
37 '-out', self.output, self.filename], 37 '-out', self.output, self.filename],
38 stdout=open('/dev/null')) 38 stdout=open('/dev/null'))
39 process.wait() 39 process.wait()
40 else: 40 else:
41 # Note: '-All=' must be followed by a known exiftool option. 41 # Note: '-All=' must be followed by a known exiftool option.
42 process = subprocess.Popen( 42 process = subprocess.Popen(
43 [ 'exiftool', '-All=', '-overwrite_original', self.filename ], 43 [ 'exiftool', '-m', '-All=', '-overwrite_original', self.filename ],
44 stdout=open('/dev/null')) 44 stdout=open('/dev/null'))
45 process.wait() 45 process.wait()
46 return True 46 return True
diff --git a/mat/office.py b/mat/office.py
index 41411c7..d1e781e 100644
--- a/mat/office.py
+++ b/mat/office.py
@@ -188,7 +188,7 @@ class PdfStripper(parser.GenericParser):
188 import exiftool 188 import exiftool
189 # Note: '-All=' must be followed by a known exiftool option. 189 # Note: '-All=' must be followed by a known exiftool option.
190 if self.backup: 190 if self.backup:
191 process = subprocess.Popen(['exiftool', '-All=', 191 process = subprocess.Popen(['exiftool', '-m', '-All=',
192 '-out', self.output, self.filename], stdout=open('/dev/null')) 192 '-out', self.output, self.filename], stdout=open('/dev/null'))
193 process.wait() 193 process.wait()
194 else: 194 else: