Skip to main content

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.

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.)

Development setup

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

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

  3. Activate the virtual environment you use for pretalx development.

  4. Execute python setup.py develop within this directory to register this application with pretalx’s plugin registry.

  5. Execute make within this directory to compile translations.

  6. 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


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-2.5.0.tar.gz (16.8 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-2.5.0-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pretalx_youtube-2.5.0.tar.gz
Algorithm Hash digest
SHA256 9c27b7cafdaf7c1c5372d81dd84eee11f0e64fa164c29b423475e656177dd324
MD5 4d989eb333d8be5511cdf25e26a5a282
BLAKE2b-256 6d6e1b7802ea4e56d3d7d4e42326566ceee500c03b3b8672c66f89dce11c32ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pretalx_youtube-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e68b07536eac7e8a9d8edec2855d3c2fc778c4b129aaa1e42ea7e7da013319aa
MD5 ac63ed4e8c7e637fa5829a4cb16a3952
BLAKE2b-256 cc812734fd4e07a57f6d00bcbfdd6d221b5eaaf184f666df8e63f7a19916d634

See more details on using hashes here.

Supported by

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