diff options
| -rw-r--r-- | mat/exiftool.py | 4 | ||||
| -rw-r--r-- | mat/office.py | 2 |
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: |
