Commit 3c56fa32 authored by jvoisin's avatar jvoisin
Browse files

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

parent 9c7aa34f
......@@ -32,7 +32,7 @@ class __ImageParser(abstract.AbstractParser):
of this.
"""
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)
else:
out = fun(self.filename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment