{% if file['phash_distance'] is not none and file['phash_distance'] <= 8 %} {% set match = (100 - (file['phash_distance'] * 2.5)|float|round(2)) ~ '%' %} {% else %} {% set match = file['name_match']|float|round(2) ~ '%' %} {% endif %} {% set card_width = '11.5rem' %} {% set card_img_height = card_width + ' / 2 * 3' %}
{{ match }} {% if file['phash_distance'] is not none %} {% if file['phash_distance'] <= 2 %} {% set phash_color = 'text-bg-success' %} {% elif file['phash_distance'] <= 8 %} {% set phash_color = 'text-bg-warning' %} {% else %} {% set phash_color = 'text-bg-danger' %} {% endif %} Phash: {{ file['phash_distance'] }} {% endif %}
{{ file['looked_up']['name'] }}
{{ file['looked_up']['type'] }}
{{ file['looked_up']['name'] }}
{% if file['looked_up']['network'] %}

{{ file['looked_up']['site'] }}

{{ file['looked_up']['network'] }}

{% else %}

{{ file['looked_up']['site'] }}

{% endif %}

{{ file['looked_up']['date'] }}

{% include 'components/performersBadges.html' %}