{% for source_type in ['programs', 'video', 'music', 'pictures', 'files', 'games'] %}
<{{ source_type }}>
{% for source in kodi_config_sources[source_type] | default([]) %}
{{ source.name }}
{{ source.path }}
true
{% endfor %}
{{ source_type }}>
{% endfor %}