diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 494bc2f19..ce63d88b6 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -5623,7 +5623,7 @@ class GedcomParser(UpdateCallback): pass def build_media_object(self, obj, form, filename, title, note): - if form == "url": + if isinstance(form, basestring) and form.lower() == "url": url = gen.lib.Url() url.set_path(filename) url.set_description(title)