Fix loading custom fields for show/artist

This commit is contained in:
JonnyWong16
2020-10-06 21:18:11 -07:00
parent 969934b8c0
commit 56472f8dd5

View File

@@ -2042,6 +2042,8 @@ def get_custom_fields(media_type, sub_media_type=None):
break
child_media_type = export.CHILD_MEDIA_TYPES.get(fields_child_media_type)
if child_media_type:
child_media_type = child_media_type[0]
custom_fields['metadata_fields'] = [{'field': attr, 'level': level}
for attr, level in sorted(metadata_levels_map.items()) if level]