{% extends "orga/base.html" %} {% load i18n %} {% block content %}

{% trans "Set up YouTube embeds" %}

{% if form %}

{% translate "Import" %}

{% blocktrans trimmed %} You can either import YouTube URLs from a CSV file or add them manually. For the file import, you will have to include a video_id (the part past the ?v= in YouTube, though the full URL works too) and a submission column (the ID/code of the submission, e.g. DEXF88). {% endblocktrans %}
{% blocktrans trimmed %} If you prefer, you can also use the API. {% endblocktrans %}

{% csrf_token %} {{ file_form.file.as_field_group }}

{% translate "Manually" %}

{% include "orga/includes/base_form.html" %} {% else %}
{% blocktrans trimmed %} You will be able to add YouTube URLs to your sessions once you've created a schedule. {% endblocktrans %}
{% endif %} {% if webhook_settings %}

{% translate "c3voc publishing webhook" %}

{% blocktrans trimmed %} If you use the c3voc voctopublish tool to upload recordings to YouTube, pretalx can receive the publishing notification and attach the YouTube link to the matching session automatically. {% endblocktrans %}

{% blocktrans trimmed %} In your voctopublish ticket, use the webhook URL below and set the webhook password (webhook_pass) to the token shown here. Leave the username empty so voctopublish sends the token in the Authorization header. Always use HTTPS to protect the token in transit. {% endblocktrans %}

{% blocktrans trimmed %} The token is a shared secret. Anyone who knows it can set YouTube links on your sessions, so keep it private. Use the Generate new token button below to rotate it if you believe it has leaked. {% endblocktrans %}

{% csrf_token %}
{% endif %} {% endblock %}