Fixed --exiftool-option, #369

This commit is contained in:
Rhet Turnbull 2021-02-08 21:21:30 -08:00
parent d91fc93737
commit 198addaa07
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,3 @@
""" version info """
__version__ = "0.40.10"
__version__ = "0.40.11"

View File

@ -254,7 +254,11 @@ class ExifTool:
filename = os.fsencode(self.file) if not no_file else b""
if self.flags:
command_str = b"\n".join([f.encode("utf-8") for f in self.flags])
# need to split flags, e.g. so "--ext AVI" becomes ["--ext", "AVI"]
flags = []
for f in self.flags:
flags.extend(f.split())
command_str = b"\n".join([f.encode("utf-8") for f in flags])
command_str += b"\n"
else:
command_str = b""

File diff suppressed because one or more lines are too long