This release is a pre-release and may not be stable for production use.
OCP YouTube Plugin
This plugin lets OVOS Common Play (OCP) play YouTube URLs. It extracts a playable stream from a YouTube link, channel, or live broadcast, so OCP can hand it to an audio or video player.
Install
pip install ovos-ocp-youtube-plugin
The plugin registers itself as an OCP stream extractor through the
opm.ocp.extractor entry point. OCP loads it automatically once it is
installed. No extra setup is needed.
Usage
OCP calls this plugin when it meets a URI that starts with one of these prefixes:
youtube: a YouTube video or playlist URLydl: any URL that yt-dlp can resolveyoutube.channel.live: a channel's current live streampytube: force the pytube backendinvidious: force an Invidious instance
Configure the extractor under the OCP section of mycroft.conf:
{
"OCP": {
"youtube": {
"youtube_backend": "youtube-dl",
"youtube_live_backend": "redirect",
"ydl_backend": "yt-dlp"
}
}
}
youtube_backendselects the extraction method:youtube-dl,pytube,invidious, orwebview.youtube_live_backendselects how a channel live stream resolves:redirect,youtube-dl, orpytube.ydl_backendselects the youtube-dl fork used:youtube-dl,youtube-dlc,yt-dlp, orauto.
Related projects
- OpenVoiceOS/ovos-plugin-manager: loads and manages OCP stream extractor plugins.
- OpenVoiceOS/ovos-ocp-audio-plugin: a sibling OCP stream extractor plugin.
- OpenVoiceOS/ovos-media: the media service that plays streams resolved by OCP extractors.
License
Apache-2.0
Metadata
Release files for ovos-ocp-youtube-plugin 0.0.9a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos_ocp_youtube_plugin-0.0.9a2.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_ocp_youtube_plugin-0.0.9a2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.1 kB
Release files / ovos_ocp_youtube_plugin-0.0.9a2.tar.gz
| Download URL | ovos_ocp_youtube_plugin-0.0.9a2.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53e27d1c11431020c4cce75c81e15c2dc2da331e4c62a0046acb381473c2d0a3
|
|
BLAKE2b-256 checksum How to use checksums |
3ca576723d0a1820db2e0787515ff01eb3ecff76e71fc0603119d6af101a789c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ovos_ocp_youtube_plugin-0.0.9a2-py3-none-any.whl
| Download URL | ovos_ocp_youtube_plugin-0.0.9a2-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7b8da95edb5b56e448c3a94d06d1ac579541db2e1d57983688e6ef90b6178cc
|
|
BLAKE2b-256 checksum How to use checksums |
7de244e86a25579e65400076e12006970a1ba299ef9bf3a45732e985c2f99169
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|