{% extends "item_base.html" %}
{% load static %}
{% load i18n %}
{% load l10n %}
{% load humanize %}
{% load mastodon %}
{% load strip_scheme %}
{% load thumb %}
{% block head %}
  {% if item.parent_item %}
    <meta http-equiv="refresh"
          content="0;url={{ item.parent_item.url }}?focus={{ item.uuid }}{% if request.GET.position %}&position={{ request.GET.position }}{% endif %}" />
  {% endif %}
  <meta property="og:image"
        content="{{ item.cover_url|default:item.program.cover_image_url }}">
  <meta property="twitter:image"
        content="{{ item.cover_url|default:item.program.cover_image_url }}">
  {% if item.media_url and item.parent_item %}
    <meta property="twitter:card" content="player">
    <meta property="twitter:player"
          content="{{ item.program.absolute_url }}/embed?focus={{ item.uuid }}{% if request.GET.position %}&position={{ request.GET.position }}{% endif %}" />
    <meta property="twitter:player:width" content="300">
    <meta property="twitter:player:height" content="120">
  {% endif %}
{% endblock %}
