Skip to content
Snippets Groups Projects
Commit aa42b905 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Speed up a bit the processing of get_meta for images with a "regular" name

parent e86e8e3c
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ class __ImageParser(abstract.AbstractParser): ...@@ -32,7 +32,7 @@ class __ImageParser(abstract.AbstractParser):
of this. of this.
""" """
fun = lambda f: subprocess.check_output(['/usr/bin/exiftool', '-json', f]) fun = lambda f: subprocess.check_output(['/usr/bin/exiftool', '-json', f])
if not re.match('^[a-z0-9]', self.filename): if re.search('^[a-z0-9]', self.filename) is None:
out = self.__handle_problematic_filename(self.filename, fun) out = self.__handle_problematic_filename(self.filename, fun)
else: else:
out = fun(self.filename) out = fun(self.filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment