Fixed --exiftool-option, #369
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
""" version info """
|
""" version info """
|
||||||
|
|
||||||
__version__ = "0.40.10"
|
__version__ = "0.40.11"
|
||||||
|
|||||||
@@ -254,7 +254,11 @@ class ExifTool:
|
|||||||
filename = os.fsencode(self.file) if not no_file else b""
|
filename = os.fsencode(self.file) if not no_file else b""
|
||||||
|
|
||||||
if self.flags:
|
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"
|
command_str += b"\n"
|
||||||
else:
|
else:
|
||||||
command_str = b""
|
command_str = b""
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user