{% macro dirlisting(dir, path='') -%} {%- endmacro %} botamusique web interface

Play List

Currently Playing: {% if playlist.length() > 0 %} {% if 'url' in playlist.current_item() %} {{ playlist.current_item()['url'] }} {% elif 'path' in playlist.current_item() %} {{ playlist.current_item()['path'] }} {% endif %} {% else %} No music {% endif %}

{% for m in playlist.playlist %} {% if loop.index0 == playlist.current_index %} {% else %} {% endif %} {% endfor %}
# Type Title Url/Path Action
{{ loop.index }} {{ m['type'].capitalize() }}
{% if 'thumbnail' in m %} {% else %} {% endif %}
{% if 'title' in m and m['title'].strip() %} {{ m['title'] }} {% else %} {{ m['url'] }} {% endif %}
{% if 'artist' in m %} {{ m['artist'] }} {% else %} Unknown Artist {% endif %}
{% if 'url' in m %} {{ m['url'] }} {% elif 'path' in m %} {{ m['path'] }} {% endif %}

Music library


{{ dirlisting(music_library) }}
Upload File
Upload To
Add URL
Add Radio