Fixed --exiftool-option, #369, for real this time
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
""" version info """
|
""" version info """
|
||||||
|
|
||||||
__version__ = "0.40.11"
|
__version__ = "0.40.12"
|
||||||
|
|||||||
@@ -315,7 +315,13 @@ class ExifTool:
|
|||||||
if not json_str:
|
if not json_str:
|
||||||
return dict()
|
return dict()
|
||||||
|
|
||||||
|
try:
|
||||||
exifdict = json.loads(json_str)
|
exifdict = json.loads(json_str)
|
||||||
|
except Exception as e:
|
||||||
|
# will fail with some commands, e.g --ext AVI which produces
|
||||||
|
# 'No file with specified extension' instead of json
|
||||||
|
return dict()
|
||||||
|
|
||||||
exifdict = exifdict[0]
|
exifdict = exifdict[0]
|
||||||
if not tag_groups:
|
if not tag_groups:
|
||||||
# strip tag groups
|
# strip tag groups
|
||||||
|
|||||||
Reference in New Issue
Block a user