{% macro display_media(m, links, main_url) -%} {% for url in m.urls %} {% if url | length == 0 %} No URL available for {{ m.key }}. {% elif 'http' in url %} {% if 'image' in m.mimetype %}
Reverse Image Search:  GoogleGoogle LensYandexBingTineye
Image Forensics:  FotoForensicsMedia Verification Assistant

{% elif 'video' in m.mimetype %}
{% elif 'audio' in m.mimetype %}
{% elif m.filename | get_extension == ".wacz" %} replayweb {% elif m.filename | get_extension == ".pem" %} {% elif 'text' in m.mimetype %}
PREVIEW:
{% else %} No preview available for {{ m.key }}. {% endif %} {% else %} {{ m.url | urlize }} {% endif %} {% if links %} open or download or {{ copy_urlize(url, "copy") }}
{% endif %} {% endfor %} {%- endmacro -%} {% macro copy_urlize(val, href_text) -%} {% if val | is_list %} {% for item in val %} {{ copy_urlize(item) }} {% endfor %} {% elif val is mapping %} {% else %} {% if href_text | length == 0 %} {{ val | string | urlize }} {% else %} {{ href_text | string | urlize }} {% endif %} {% endif %} {%- endmacro -%} {% macro display_recursive(prop, skip_display) -%} {% if prop is mapping %}
Copy as JSON
{% elif prop | is_list %} {% for item in prop %}
  • {{ display_recursive(item) }}
  • {% endfor %} {% elif prop | is_media %} {% if not skip_display %} {{ display_media(prop, true) }} {% endif %} {% else %} {{ copy_urlize(prop) }} {% endif %} {%- endmacro -%}