summaryrefslogtreecommitdiff
path: root/libmat2
diff options
context:
space:
mode:
authorjvoisin2018-06-08 23:30:12 +0200
committerjvoisin2018-06-08 23:30:12 +0200
commitaa42b905d5c0131011a38335c7da2922ba9eebf3 (patch)
tree1c977f85f8e1c6c8ce0d5b09113bedd9f0aeafa4 /libmat2
parente86e8e3c237a8c517701701800a823159354b2c1 (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.py2
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)