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

Improve a bit the performances wrt. image's metadata display

parent 9c7aa34f
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 re.search('^[a-z0-9]', self.filename) is None: 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.
Finish editing this message first!
Please register or to comment