Closed abetomas closed 2 years ago
I just pushed out a new release. ExifToolHelper.get_tags()
isn't the same as the original get_tag()
functionality. I had currently left that functionality in ExifToolAlpha
because it can cause some inadvertent behavior.
In v0.4, try doing something like ExifTool.get_tag("*.mp4", "CreateDate") and wonder which is related to which file to get a sense of the problem...
So the functionality you're looking for is ExifToolAlpha.get_tag()
. Try that
Thanks.. I was able to figure this out after a further reading of the documentation. The following worked ok for me:
with exiftool.ExifToolHelper(common_args=['-s',b'-d',b'"%Y-%m-%d %H.%M.%S%z"']) as et:
metadata = et.get_tags(source_filepath,'CreateDate')
Can output formats be specified using exiftool.ExifToolHelper()? I tried the formatting date for CreateDate and it did not work.
I previously used the older version of pyexiftool >> xx.get_tag('CreateDate', FileName) << will return only value of CreateDate without sourcefile and tagnames.
Note: using exiftool.ExifTool() applies the date format specified in the common_args list and tagname does not contain groupname.
Thanks again for your help.