Speed up a bit the processing of get_meta for images with a "regular" name
This commit is contained in:
parent
e86e8e3c23
commit
aa42b905d5
@ -32,7 +32,7 @@ class __ImageParser(abstract.AbstractParser):
|
||||
of this.
|
||||
"""
|
||||
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)
|
||||
else:
|
||||
out = fun(self.filename)
|
||||
|
Loading…
Reference in New Issue
Block a user