summaryrefslogtreecommitdiff
path: root/libmat/exiftool.py
diff options
context:
space:
mode:
authorjvoisin2015-12-04 00:16:00 +0100
committerjvoisin2015-12-04 00:16:00 +0100
commit81bf41933551f6bebf5a0c6a86e47af2e597b653 (patch)
treed34371c6166a62027d7f524d88888c97c1032869 /libmat/exiftool.py
parent43804de4649ec8444bf4b23fd391226446eb85a5 (diff)
Silence exiftool's stderr
In the past, this might have been useful, but now, exiftool works on pretty much every file passed to it by MAT. Also, if something goes wrong, MAT will know about this thanks to the return code != 0.
Diffstat (limited to 'libmat/exiftool.py')
-rw-r--r--libmat/exiftool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat/exiftool.py b/libmat/exiftool.py
index ef81ed3..78550ed 100644
--- a/libmat/exiftool.py
+++ b/libmat/exiftool.py
@@ -31,7 +31,7 @@ class ExiftoolStripper(parser.GenericParser):
31 # Also, '-CommonIFD0' is needed for .tiff files 31 # Also, '-CommonIFD0' is needed for .tiff files
32 subprocess.call(['exiftool', '-all=', '-adobe=', '-exif:all=', '-Time:All=', '-m', 32 subprocess.call(['exiftool', '-all=', '-adobe=', '-exif:all=', '-Time:All=', '-m',
33 '-CommonIFD0=', '-overwrite_original', self.filename], 33 '-CommonIFD0=', '-overwrite_original', self.filename],
34 stdout=open('/dev/null')) 34 stdout=open('/dev/null'), stderr=open('/dev/null'))
35 return True 35 return True
36 except OSError: 36 except OSError:
37 return False 37 return False