Rewind file pointer before calling exiftool
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -45,8 +45,8 @@ class EXIFToolDriver(FileMetadataDriver):
|
||||
|
||||
try:
|
||||
document_version.save_to_file(file_object=temporary_fileobject)
|
||||
temporary_fileobject.seek(0)
|
||||
result = self.command_exiftool(temporary_fileobject.name)
|
||||
|
||||
return json.loads(s=result.stdout)[0]
|
||||
finally:
|
||||
temporary_fileobject.close()
|
||||
|
||||
Reference in New Issue
Block a user