def get_safe_value(self, key):
"""
Get the meta value or an empty string.
http://python3-exiv2.readthedocs.io/en/latest/api.html
http://python3-exiv2.readthedocs.io/en/latest/tutorial.html
"""
try:
val = self.meta[key].value
if self.meta[key].repeatable:
return val
return val[0]
except KeyError:
return ''
评论列表
文章目录