Skip to main content
https://raw.githubusercontent.com/pretalx/pretalx-youtube/python-coverage-comment-action-data/badge.svg

This is a plugin for pretalx that provides an integration with Youtube, allowing you to embed recordings on talk pages.

https://github.com/pretalx/pretalx-youtube/blob/main/assets/screenshot.png?raw=true

API

Reading data

The Plugin supplies an API at /api/events/<event>/p/youtube/ that returns all configured Youtube URLs:

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "submission": "DPC6RT",
            "youtube_link": "https://youtube.com/watch?v=AAAAAB",
            "video_id": "AAAAAB"
        },
    ]
}

A detail view for specific submissions is available at /api/events/<event>/p/youtube/<code>/:

{
    "submission": "DPC6RT",
    "youtube_link": "https://youtube.com/watch?v=AAAAAB",
    "video_id": "AAAAAB"
}

Writing data

You can use POST requests against the list endpoint and PATCH or PUT requests against the detail endpoint to create or update Youtube links. The video_id field is required, as is the submission field unless you are using PATCH. The submission field must be the code of an existing submission, and the API will take care of updating existing links if you use POST, so it’s safe to just always POST to the list endpoint.

You can also bulk import data in either JSON or CSV format. The JSON format is the same as the one used by the API, and the CSV format is a simple CSV file with a header row containing the fields submission and video_id. You can upload the file to /api/events/<event>/p/youtube/import/ using a POST request with the file as the body. (For JSON, you can also instead put the data in the request body.)

c3voc publishing webhook

If you use the c3voc voctopublish tool to upload recordings to YouTube, the plugin can receive the publishing notification and attach the YouTube link to the matching session automatically.

Go to the plugin’s settings page in the organiser backend to find the webhook URL and a freshly-generated token. In your voctopublish ticket, configure the webhook URL and set the webhook password (webhook_pass) to the token — leave the username empty so voctopublish uses the Authorization header. Always use HTTPS to protect the token in transit.

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 in the settings to rotate it if you believe it has leaked.

Development setup

  1. Make sure that you have a working pretalx development setup.

  2. Clone this repository, eg to local/pretalx-youtube.

  3. Install the plugin in editable mode: uv pip install -e .

  4. Restart your local pretalx server. You can now use the plugin from this repository for your events by enabling it in the ‘plugins’ tab in the settings.

Development commands

This plugin uses just as a task runner and uv for dependency management. Run just with no arguments to list every available command. The most useful ones are:

just fmt

Auto-format and lint the code.

just test

Run the full test suite with pytest.

Installing pretalx

The tests need pretalx installed in the environment. just test handles this for you: if pretalx cannot be imported, it installs the latest version from git before running the test suite.

If you already have a development version of pretalx around (for example if you want to test your changes against a specific commit or branch of pretalx), you can also install pretalx up front yourself:

just install-pretalx-local /path/to/pretalx

Install pretalx from a local checkout as an editable install.

just install-pretalx

Install the latest pretalx from git (runs before tests if no pretalx is installed).

License

Copyright 2021 Tobias Kunze

Released under the terms of the Apache License 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pretalx_youtube-3.0.0.tar.gz (48.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pretalx_youtube-3.0.0-py3-none-any.whl (63.9 kB view details)

Uploaded Python 3

File details

Details for the file pretalx_youtube-3.0.0.tar.gz.

File metadata

  • Download URL: pretalx_youtube-3.0.0.tar.gz
  • Upload date:
  • Size: 48.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pretalx_youtube-3.0.0.tar.gz
Algorithm Hash digest
SHA256 74e8997bf52d109b0e304fedfe2cf4570bb7a9783f5f116c80c58190a3675d8e
MD5 44eb37f187d4184c5c0a66fde35d9bfa
BLAKE2b-256 b04649f1efdccd97b0f6ae16bffc83b6fc1c764e75b48bbbb6b82ef930cdccfb

See more details on using hashes here.

File details

Details for the file pretalx_youtube-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pretalx_youtube-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c1e599f1726c6a51a576478565d8ae0d6fa24ec11fd512d121b809d5d6b3a02
MD5 6699077755a5a4ed204a3119809d9fff
BLAKE2b-256 2267c991df3ae159341179efb6e67d417af7f4666fb9a8faa7d599494cb1d5cb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 files

2.6.0

2 files

2.5.0

2 files

2.4.0

2 files

2.3.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

1.3.0

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page