Show YouTube videos embedded on talk pages. Set URLs manually or via API.
Project description
This is a plugin for pretalx that provides an integration with Youtube, allowing you to embed recordings on talk pages.
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.)
Development setup
Make sure that you have a working pretalx development setup.
Clone this repository, eg to local/pretalx-youtube.
Install the plugin in editable mode: uv pip install -e .
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.
Testing
Run just test to execute the test suite. This will automatically install pretalx from git if it’s not already present.
If you’re developing against a local pretalx checkout, use just install-pretalx-local /path/to/pretalx first.
Use just fmt to format your code, or just fmt-check to check formatting without modifying files.
License
Copyright 2021 Tobias Kunze
Released under the terms of the Apache License 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pretalx_youtube-2.6.0.tar.gz.
File metadata
- Download URL: pretalx_youtube-2.6.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c14c6cca413dd30ac144e45ce646dff01aa2692e542e8c4384422f6e8263cf2f
|
|
| MD5 |
76b6347c9aa2aad46787b59a4848639e
|
|
| BLAKE2b-256 |
a2209af75788760a911c0816d63e0b6c193d7c437a5612be015bc094e6180275
|
File details
Details for the file pretalx_youtube-2.6.0-py3-none-any.whl.
File metadata
- Download URL: pretalx_youtube-2.6.0-py3-none-any.whl
- Upload date:
- Size: 59.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b8ac275bda8868542a9fb86e2ea5a8ae58ec90ca0a5d905d486d25203599065
|
|
| MD5 |
6c5d22d0c0f6e429e3eb4e58581c03e5
|
|
| BLAKE2b-256 |
d44ee7d341154514b35945cbeba42f5c14279d9fc9be3d6e8ea40893e4f2705e
|