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):
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)
if not metadata:
return False
@ -318,9 +318,13 @@ class Media(Base):
return None
source = self.source
exiftool = get_exiftool()
if(exiftool is None):
return False
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)
return status != ''