{# Stats summary for the matching items (beets stats-style). #} {% if error %}
Query error: {{ error }}
{% elif stats %}{{ stats.tracks }} tracks, {{ stats.albums }} albums, {{ stats.artists }} artists, {{ stats.album_artists }} album artists — total time {{ stats.total_time_minutes | round(0, "floor") | int }} s, {# Render the approximate size as GB when >= 1 GB, otherwise MB (1024-based units). #} {% set gigabyte = 1024 * 1024 * 1024 %} {% if stats.approximate_total_size_bytes >= gigabyte %} ~{{ (stats.approximate_total_size_bytes / gigabyte) | round(2) }} GB. {% else %} ~{{ (stats.approximate_total_size_bytes / (1024 * 1024)) | round(2) }} MB. {% endif %}
{% endif %}