Improve a bit the performances wrt. image's metadata display
This commit is contained in:
parent
9c7aa34f50
commit
3c56fa3237
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user