Static youtube for pretalx, e.g. information, venue listings, a Code of Conduct, etc.
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.
Activate the virtual environment you use for pretalx development.
Execute python setup.py develop within this directory to register this application with pretalx’s plugin registry.
Execute make within this directory to compile translations.
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.
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
File details
Details for the file pretalx_youtube-2.2.0.tar.gz
.
File metadata
- Download URL: pretalx_youtube-2.2.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c326fee59dca5590dc7892a2fba30b896f988c807b0119387291988b0b3bae |
|
MD5 | 993f9dac4afe01c03513054419bc3b9b |
|
BLAKE2b-256 | 0b7c08118f0f59b50c2a0e7e475bb7528fda3056f11256204301a132cb2f69c3 |
File details
Details for the file pretalx_youtube-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: pretalx_youtube-2.2.0-py3-none-any.whl
- Upload date:
- Size: 58.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0802c00dee25a0b504d6e13f343901e4bcc9953768f04e06494b96f24090c12 |
|
MD5 | 4d0598289f572b4b6c8befb7a2c9c534 |
|
BLAKE2b-256 | 94b6698428e1ce1d131fd28f97c08db6dac9016324e3c332f80a8a7c23b8727a |