{% extends "cms/base.html" %} {% block title %}{% if item %}Edit Media{% else %}Add Media{% endif %} — CMS{% endblock %} {% block extra_head %} {% endblock %} {% block cms_content %} {% if item %} {% endif %}

Library / {% if item %}{{ item.title }}{% else %}Add Media{% endif %}

Back
{% csrf_token %}
Basic Info
Title *
Media Type *
Subtype
Description
Collection
Collection
Season
Episode #
Track #
Media File
{% if item and not item.source_url and item.hls_status != 'ready' and item.hls_status != 'pending' %}
{% if item.hls_status == 'processing' %}Processing… please wait {% elif item.hls_status == 'error' %}Error: {{ item.hls_error|truncatechars:120 }} {% else %}Pending{% endif %}
{% endif %} {% if item and item.original_file and not item.source_url and item.media_type != 'image' %}
{% if item.hls_status == 'ready' %}Streaming version is ready. The original file is kept. {% elif item.hls_status == 'processing' %}Converting to a streaming version. {% else %}Served as the original file. Convert it for adaptive streaming.{% endif %}
{% if item.hls_status != 'processing' %} {% csrf_token %} {% endif %}
{% endif %}
Uploaded as is. Convert to HLS afterwards for AES-128 encrypted streaming.
External Link
Paste a YouTube or SoundCloud URL to stream it directly — no file upload needed.
{% if item and item.source_url %}
External URL saved
{% endif %}
{% if item %} {% if item.source_url %}
Preview
{% elif item.media_type == 'video' and item.hls_status == 'ready' %}
Preview
{% elif item.media_type == 'audio' and item.original_file %}
Preview
{% elif item.media_type == 'image' and item.original_file %}
Preview
{% elif item.thumbnail and item.thumbnail.name %}
Preview
{% endif %} {% endif %}
Visibility
Settings
Access
Content Rating
{{ item.content_rating }}
Parental Advisory
{{ item.audio_advisory }}
Language
Year
Tags
Thumbnail
{% if item and item.thumbnail and item.thumbnail.name %} {% else %} {% endif %}
1280 x 720 px, 16:9
{% if item and item.thumbnail and item.thumbnail.name %} {% endif %}
{% if item %} {% endif %}
{% if item and item.thumbnail and item.thumbnail.name %} {% endif %} {% if item %} {% endif %} {% if item and item.source_url %} {% endif %} {% endblock %}