from os import scandir
from os.path import splitext
from exiftool import ExifToolHelper # type: ignore
+from stable.gen_params import GenParams
import gi
gi.require_version('Gtk', '4.0')
# pylint: disable=wrong-import-position
for d in et.get_tags([path], ['Comment']):
for k, v in d.items():
if k.endswith('Comment'):
- metadata = v
+ metadata = ''
+ gen_params = GenParams.from_str(v)
+ for k, v_ in gen_params.as_dict.items():
+ metadata += f'\n{k}: {v_}'
self.metadata.props.label = f'{path}: {metadata}'
pic = Gtk.Picture.new_for_filename(path)
self.box_outer.append(pic)