8157: ImageMetadata doesn't show metadata

This commit is contained in:
Josip 2014-11-07 19:26:36 +01:00
parent da2c8aa644
commit 0301ddd1a6

View File

@ -184,7 +184,9 @@ class MetadataView(Gtk.TreeView):
retval = False
with open(full_path, 'rb') as fd:
try:
metadata = GExiv2.Metadata(self.fd)
buf = fd.read()
metadata = GExiv2.Metadata()
metadata.open_buf(buf)
get_human = metadata.get_tag_interpreted_string
@ -238,7 +240,9 @@ class MetadataView(Gtk.TreeView):
with open(full_path, 'rb') as fd:
retval = False
try:
metadata = GExiv2.Metadata(fd)
buf = fd.read()
metadata = GExiv2.Metadata()
metadata.open_buf(buf)
for tag in TAGS:
if tag in metadata.get_exif_tags():
retval = True