When you publish a video on YouTube, you have the option to add a chapters list in the description, which divides the video timeline into chapters for easier navigation.
This RotorHazard plugin will help you to generate a chapters list based on the start time of each heat. Ideal for when you want to publish the VOD of your livestream afterwards and make it easier for viewers to navigate to a specific round / heat of the race.
- Every time a heat starts it will be logged as a chapter entry.
- Based on the start time, the plugin will generate a list of chapters for YouTube.
- Export a txt file where you can copy/paste the chapters into your YouTube video description.
Warning
This plugin is still in development and only works currently with the dev branch of RotorHazard.
- Install the YouTube Chapters plugin, by running the following command in your terminal at the device where RotorHazard is installed:
bash -c "$(curl -fsSL https://short.dutchdronesquad.nl/install-youtube-chapters)"
- You'll be prompted to choose between stable or development:
- stable: Choose this option if you want to install a stable release.
- The script will fetch the last 5 stable releases from GitHub.
- Choose the version you want to install and press enter.
- development: Choose this option if you want to install the latest development version.
- The script will fetch the main branch from GitHub.
- stable: Choose this option if you want to install a stable release.
- If the plugin is already in RotorHazard, you'll be prompted to update it.
- Choose y (yes) to update the plugin.
- Choose n (no) to exit the script.
- When the installation is finished, restart RotorHazard.
- Note when you started live streaming (local time).
- Do the race timing as you are used to, each heat start will be logged automatically.
- When you are done, fill in the start time and confirm with the
Set Start Time
button. - Click on
Export Chapters
to generate a txt file with the chapters.- You will see the download link after page refresh under Exported Chapters List.
- Don't forget to reset the logging every time you have a new event.
This Python project relies on uv as its dependency manager, providing comprehensive management and control over project dependencies.
You need the following tools to get started:
- uv - A python virtual environment/package manager
- Python 3.11 (or higher) - The programming language
- Clone the repository
- Install all dependencies with UV. This will create a virtual environment and install all dependencies
uv sync
- Setup the pre-commit check, you must run this inside the virtual environment
uv run pre-commit install
As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:
uv run pre-commit run --all-files
To manual run only on the staged files, use the following command:
uv run pre-commit run
This plugin has been requested by Dutch Drone Racing (DDR) and developed by Dutch Drone Squad (DDS).
Distributed under the MIT License. See LICENSE
for more information.