Specify fully qualified path for exiftool program (#304)
This commit is contained in:
parent
283611a21e
commit
9ddb094ec7
|
@ -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 != ''
|
||||||
|
|
Loading…
Reference in New Issue