{% extends "_base.html" %} {% block title %}{{ episode.title or 'New episode' }} — offshore{% endblock %} {% block content %}

{{ 'New episode' if is_new else 'Edit episode' }}

* required

{% set audio_url = (episode.audio.url | string) if episode.audio else '' %} {% set has_audio = audio_url and audio_url != 'None' and not is_new %} {% if has_audio %}
0:00 / 0:00
{% endif %}
{% set show_img_str = (show.image_url | string) if show.image_url else '' %} {% set show_img = show_img_str if show_img_str != 'None' else '' %} {% set ep_img_str = (episode.image_url | string) if episode.image_url else '' %} {% set ep_img = ep_img_str if ep_img_str != 'None' else '' %} {% set active_img = ep_img or show_img %}
{% if not is_new %}
{% if episode.guid.startswith('draft-') %}A permanent GUID will be generated when you publish this draft.{% else %}Generated on episode creation and shouldn’t be edited. Changing it would look like a brand-new episode to subscribers.{% endif %}
{% endif %}
{% if probe_entry is defined and probe_entry %}

{% if probe_entry.ok %} probed{% include "icon_circle.svg" %} {{ probe_entry.mime_type or 'unknown type' }} {%- if probe_entry.length_bytes %}, {% if probe_entry.length_bytes >= 1048576 %}{{ "%.1f MB"|format(probe_entry.length_bytes / 1048576) }}{% elif probe_entry.length_bytes >= 1024 %}{{ "%.1f KB"|format(probe_entry.length_bytes / 1024) }}{% else %}{{ probe_entry.length_bytes }} bytes{% endif %}{% endif -%}{%- if probe_entry.duration_seconds %}{% set total = probe_entry.duration_seconds|int %}{% set h = total // 3600 %}{% set m = (total % 3600) // 60 %}{% set s = total % 60 %}, {% if h %}{{ '%d:%02d:%02d'|format(h, m, s) }}{% else %}{{ '%d:%02d'|format(m, s) }}{% endif %}{% endif -%}{% else %}probe failed{% include "icon_triangle.svg" %}{{ probe_entry.error or 'unknown error' }}{% endif %}. Accessed {{ probe_entry.probed_at.strftime('%Y-%m-%d %H:%M') }}.

{% elif episode.audio.length_bytes %}

probed{% include "icon_circle.svg" %} {{ episode.audio.mime_type or 'unknown type' }} {%- if episode.audio.length_bytes %}, {% if episode.audio.length_bytes >= 1048576 %}{{ "%.1f MB"|format(episode.audio.length_bytes / 1048576) }}{% elif episode.audio.length_bytes >= 1024 %}{{ "%.1f KB"|format(episode.audio.length_bytes / 1024) }}{% else %}{{ episode.audio.length_bytes }} bytes{% endif %}{% endif -%} {%- if episode.audio.duration_seconds %} {% set total = episode.audio.duration_seconds|int %} {% set h = total // 3600 %}{% set m = (total % 3600) // 60 %}{% set s = total % 60 %} , {% if h %}{{ '%d:%02d:%02d'|format(h, m, s) }}{% else %}{{ '%d:%02d'|format(m, s) }}{% endif %} {% endif -%}

{% endif %}
{% if episode_image_check.image == "fail" %}

image check failed {% include "icon_triangle.svg" %} {{ episode_image_check.image_warnings[0] if episode_image_check.image_warnings else "could not verify this image" }}

{% elif episode_image_check.image_warnings %}{% for w in episode_image_check.image_warnings %}

note {% include "icon_square.svg" %} {{ w }}

{% endfor %}{% endif %}

Hosts and guests, chosen from the show roster or create new entries right here.

Preview

{% if not is_new %}{% endif %}
Saving{% if not is_new %} and verifying audio{% endif %}…
{% if not is_new %}

Republish episode

Changing an episode's pub_date will look like a brand new item to some podcast clients. Subscribers may re-download and be notified.

{% endif %} {% endblock %} {% block person_add_modal %}{% include "_add_person_overlay.html" %}{% endblock %}