diff options
| author | jvoisin | 2011-10-23 17:20:37 +0200 |
|---|---|---|
| committer | jvoisin | 2011-10-23 17:20:37 +0200 |
| commit | 6d0d3a161c72ba483c6ec51312805e69fcca47d7 (patch) | |
| tree | 4ccecaa851b5137fffc5a220d2e2b8622a288f15 | |
| parent | 8d12940e1efa34a272c44a362405e86455721938 (diff) | |
Correct handling of spaces in filenames (intrigeri)
| -rw-r--r-- | mat/exiftool.py | 6 | ||||
| -rw-r--r-- | 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): | |||
| 31 | Remove all metadata with help of exiftool | 31 | Remove all metadata with help of exiftool |
| 32 | ''' | 32 | ''' |
| 33 | if self.backup: | 33 | if self.backup: |
| 34 | process = subprocess.Popen(['exiftool', '-all=', | 34 | process = subprocess.Popen(['exiftool', '-All', |
| 35 | '-o %s' % self.output, self.filename], | 35 | '-out', self.output, self.filename], |
| 36 | stdout=open('/dev/null')) | 36 | stdout=open('/dev/null')) |
| 37 | process.wait() | 37 | process.wait() |
| 38 | else: | 38 | else: |
| 39 | process = subprocess.Popen(['exiftool', '-overwrite_original', | 39 | process = subprocess.Popen(['exiftool', '-overwrite_original', |
| 40 | '-all=', self.filename], stdout=open('/dev/null')) | 40 | '-All', self.filename], stdout=open('/dev/null')) |
| 41 | process.wait() | 41 | process.wait() |
| 42 | 42 | ||
| 43 | def is_clean(self): | 43 | 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): | |||
| 170 | try: | 170 | try: |
| 171 | import exiftool | 171 | import exiftool |
| 172 | if self.backup: | 172 | if self.backup: |
| 173 | process = subprocess.Popen(['exiftool', '-all=', | 173 | process = subprocess.Popen(['exiftool', '-All', |
| 174 | '-o %s' % self.output, self.filename], | 174 | '-out', self.output, self.filename], |
| 175 | stdout=open('/dev/null')) | 175 | stdout=open('/dev/null')) |
| 176 | process.wait() | 176 | process.wait() |
| 177 | else: | 177 | else: |
| 178 | process = subprocess.Popen(['exiftool', '-overwrite_original', | 178 | process = subprocess.Popen(['exiftool', '-overwrite_original', |
| 179 | '-all=', self.filename], stdout=open('/dev/null')) | 179 | '-All', self.filename], stdout=open('/dev/null')) |
| 180 | process.wait() | 180 | process.wait() |
| 181 | except: | 181 | except: |
| 182 | try: | 182 | try: |
