diff options
| author | jvoisin | 2018-06-08 23:30:12 +0200 |
|---|---|---|
| committer | jvoisin | 2018-06-08 23:30:12 +0200 |
| commit | aa42b905d5c0131011a38335c7da2922ba9eebf3 (patch) | |
| tree | 1c977f85f8e1c6c8ce0d5b09113bedd9f0aeafa4 /libmat2 | |
| parent | e86e8e3c237a8c517701701800a823159354b2c1 (diff) | |
Speed up a bit the processing of get_meta for images with a "regular" name
Diffstat (limited to 'libmat2')
| -rw-r--r-- | libmat2/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/images.py b/libmat2/images.py index fe700d2..0b85cde 100644 --- a/libmat2/images.py +++ b/libmat2/images.py | |||
| @@ -32,7 +32,7 @@ class __ImageParser(abstract.AbstractParser): | |||
| 32 | of this. | 32 | of this. |
| 33 | """ | 33 | """ |
| 34 | fun = lambda f: subprocess.check_output(['/usr/bin/exiftool', '-json', f]) | 34 | fun = lambda f: subprocess.check_output(['/usr/bin/exiftool', '-json', f]) |
| 35 | if not re.match('^[a-z0-9]', self.filename): | 35 | if re.search('^[a-z0-9]', self.filename) is None: |
| 36 | out = self.__handle_problematic_filename(self.filename, fun) | 36 | out = self.__handle_problematic_filename(self.filename, fun) |
| 37 | else: | 37 | else: |
| 38 | out = fun(self.filename) | 38 | out = fun(self.filename) |
