Specify fully qualified path for exiftool program (#304)

This commit is contained in:
Jaisen Mathai 2019-03-09 23:01:28 -08:00 committed by GitHub
parent 283611a21e
commit 9ddb094ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -126,7 +126,7 @@ class Media(Base):
if(exiftool is None): if(exiftool is None):
return False return False
with ExifTool(addedargs=self.exiftool_addedargs) as et: with ExifTool(executable_=exiftool, addedargs=self.exiftool_addedargs) as et:
metadata = et.get_metadata(source) metadata = et.get_metadata(source)
if not metadata: if not metadata:
return False return False
@ -318,9 +318,13 @@ class Media(Base):
return None return None
source = self.source source = self.source
exiftool = get_exiftool()
if(exiftool is None):
return False
status = '' status = ''
with ExifTool(addedargs=self.exiftool_addedargs) as et: with ExifTool(executable_=exiftool, addedargs=self.exiftool_addedargs) as et:
status = et.set_tags(tags, source) status = et.set_tags(tags, source)
return status != '' return status != ''