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.9a1.tar.gz (12.4 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.9a1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file ovos_ocp_youtube_plugin-0.0.9a1.tar.gz.

File metadata

File hashes

Hashes for ovos_ocp_youtube_plugin-0.0.9a1.tar.gz
Algorithm Hash digest
SHA256 3d85d1da308f15cff1e997a30640845ebd504e7e4260124c4d58df727e98fce3
MD5 e33d0ab50cbc43d9188e7f614ae00442
BLAKE2b-256 351f887bf3d436a538d9cb6ebdcd88767300a74b4e58611a00b4413b5ef85e84

See more details on using hashes here.

File details

Details for the file ovos_ocp_youtube_plugin-0.0.9a1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_ocp_youtube_plugin-0.0.9a1-py3-none-any.whl
Algorithm Hash digest
SHA256 6cac0790d8c6e71b9dccdd5a93966bbeb3347fb2a75fb580d82afe7d28121422
MD5 a104c68eb7093756fb331afd0c8d1ccc
BLAKE2b-256 0f0c576a2dceaefe79f7f765dd602e63656775cdcdb3e26088dcbf4b7a71bb28

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