Skip to main content
Pre-release

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 URL
  • ydl: any URL that yt-dlp can resolve
  • youtube.channel.live: a channel's current live stream
  • pytube: force the pytube backend
  • invidious: 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_backend selects the extraction method: youtube-dl, pytube, invidious, or webview.
  • youtube_live_backend selects how a channel live stream resolves: redirect, youtube-dl, or pytube.
  • ydl_backend selects the youtube-dl fork used: youtube-dl, youtube-dlc, yt-dlp, or auto.

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)

Source distribution for ovos-ocp-youtube-plugin 0.0.9a2
File Size Uploaded
ovos_ocp_youtube_plugin-0.0.9a2.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-ocp-youtube-plugin 0.0.9a2
File Interpreter ABI Platform
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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page