{% for file in range (0,42) -%}
{%- set filez = '%02d' % file -%}
{%- set filename = lastfiles[file] -%}
{%- if 'png' in filename or 'jpg' in filename or 'jpeg' in filename or 'gif' in filename -%}
{%- endif -%}
{%- if 'mp3' in filename or 'm4a' in filename or 'ogg' in filename -%}
{%- endif -%}
{%- if 'mp4' in filename or 'mkv' in filename or 'ogv' in filename -%}
{%- endif -%}
{%- endfor %}