🎵 Music Player
🖼️ Gallery
🔍 Filter
FAQ
📚 API
Music Home
{% if listing.current_path != "" %} / {{ listing.current_path }} {% endif %}
{% if let Some(parent) = listing.parent_path %}
← Back
{% endif %}
{% if listing.total_items == 0 %}
No audio files or directories found in this location.
{% else %}
{% if listing.page > 1 %} Showing {{ (listing.page - 1) * listing.per_page + 1 }}-{% if (listing.page - 1) * listing.per_page + listing.entries.len() > listing.total_items %}{{ listing.total_items }}{% else %}{{ (listing.page - 1) * listing.per_page + listing.entries.len() }}{% endif %} of {{ listing.total_items }} items {% else %} Showing 1-{% if listing.entries.len() > listing.total_items %}{{ listing.total_items }}{% else %}{{ listing.entries.len() }}{% endif %} of {{ listing.total_items }} items {% endif %}
{% set audio_count = 0 %} {% set dir_count = 0 %} {% for entry in listing.entries %} {% if entry.is_audio() %} {% set audio_count = audio_count + 1 %} {% else if entry.is_directory() %} {% set dir_count = dir_count + 1 %} {% endif %} {% endfor %} {% if audio_count > 0 %}
📊 {{ audio_count }} audio file{% if audio_count != 1 %}s{% endif %}
{% if dir_count > 0 %}
📁 {{ dir_count }} folder{% if dir_count != 1 %}s{% endif %}
{% endif %} {% if audio_count > 1 %}
🎲 Play All Random
▶️ Play All
{% endif %}
{% endif %}
{% for entry in listing.entries %} {% if entry.is_directory() %}
📁
{{ entry.name }}
Album Folder
{% else if entry.is_archive() %}
🗜️
{{ entry.name }}
{{ entry.formatted_size() }}
Music Archive
{% else if entry.is_audio() %}
🎵
{{ entry.name }}
{{ entry.formatted_size() }}
Audio
{% endif %} {% endfor %}
{% if listing.total_pages > 1 %}
{% if listing.page > 1 %}
← Previous
{% else %}
← Previous
{% endif %}
{% for page_num in 1..=listing.total_pages %} {% if page_num == listing.page %}
{{ page_num }}
{% else if page_num == 1 || page_num == listing.total_pages || (page_num >= listing.page - 2 && page_num <= listing.page + 2) %}
{{ page_num }}
{% else if page_num == listing.page - 3 || page_num == listing.page + 3 %}
...
{% endif %} {% endfor %}
{% if listing.page < listing.total_pages %}
Next →
{% else %}
Next →
{% endif %}
{% endif %} {% endif %}
×
‹
›
← Prev
🎲 Random
🔀 Shuffle: OFF
Next →