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
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 ovos_ocp_youtube_plugin-0.0.8a2.tar.gz.
File metadata
- Download URL: ovos_ocp_youtube_plugin-0.0.8a2.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fe9803ada59a85905dd223cbc5415dcbd73b050c2b175ba291165af3a758f60
|
|
| MD5 |
3db372c7ead11737893db01b2a24cdfc
|
|
| BLAKE2b-256 |
4124559f883cf72f768417f45444f0e4357386214cbc3b297a852a149df3c2d2
|
File details
Details for the file ovos_ocp_youtube_plugin-0.0.8a2-py3-none-any.whl.
File metadata
- Download URL: ovos_ocp_youtube_plugin-0.0.8a2-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f62d66e3506a354e0a8385ee175971474182ac322d10851c378fcb12d28ade41
|
|
| MD5 |
d435d0ca5a2e112fb3e4ab388143617c
|
|
| BLAKE2b-256 |
c9c3406c97fab8f6cc7bd6f73d314cf82a03a155f3e6b0308a45b2b85a8d7958
|