diff options
Diffstat (limited to 'mat/exiftool.py')
| -rw-r--r-- | mat/exiftool.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/mat/exiftool.py b/mat/exiftool.py index 5a4ecc9..1d2d116 100644 --- a/mat/exiftool.py +++ b/mat/exiftool.py | |||
| @@ -30,15 +30,19 @@ class ExiftoolStripper(parser.GenericParser): | |||
| 30 | ''' | 30 | ''' |
| 31 | Remove all metadata with help of exiftool | 31 | Remove all metadata with help of exiftool |
| 32 | ''' | 32 | ''' |
| 33 | if self.backup: | 33 | try: |
| 34 | process = subprocess.Popen(['exiftool', '-All=', | 34 | if self.backup: |
| 35 | '-out', self.output, self.filename], | 35 | process = subprocess.Popen(['exiftool', '-All=', |
| 36 | stdout=open('/dev/null')) | 36 | '-out', self.output, self.filename], |
| 37 | process.wait() | 37 | stdout=open('/dev/null')) |
| 38 | else: | 38 | process.wait() |
| 39 | process = subprocess.Popen(['exiftool', '-overwrite_original', | 39 | else: |
| 40 | '-All=', self.filename], stdout=open('/dev/null')) | 40 | process = subprocess.Popen(['exiftool', '-overwrite_original', |
| 41 | process.wait() | 41 | '-All=', self.filename], stdout=open('/dev/null')) |
| 42 | process.wait() | ||
| 43 | return True | ||
| 44 | except: | ||
| 45 | return False | ||
| 42 | 46 | ||
| 43 | def is_clean(self): | 47 | def is_clean(self): |
| 44 | ''' | 48 | ''' |
