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.

Related projects

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

ovos_ocp_youtube_plugin-0.0.8a2.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_ocp_youtube_plugin-0.0.8a2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file ovos_ocp_youtube_plugin-0.0.8a2.tar.gz.

File metadata

File hashes

Hashes for ovos_ocp_youtube_plugin-0.0.8a2.tar.gz
Algorithm Hash digest
SHA256 2fe9803ada59a85905dd223cbc5415dcbd73b050c2b175ba291165af3a758f60
MD5 3db372c7ead11737893db01b2a24cdfc
BLAKE2b-256 4124559f883cf72f768417f45444f0e4357386214cbc3b297a852a149df3c2d2

See more details on using hashes here.

File details

Details for the file ovos_ocp_youtube_plugin-0.0.8a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_ocp_youtube_plugin-0.0.8a2-py3-none-any.whl
Algorithm Hash digest
SHA256 f62d66e3506a354e0a8385ee175971474182ac322d10851c378fcb12d28ade41
MD5 d435d0ca5a2e112fb3e4ab388143617c
BLAKE2b-256 c9c3406c97fab8f6cc7bd6f73d314cf82a03a155f3e6b0308a45b2b85a8d7958

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 Sentry Error logging StatusPage Status page