Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-media-provider-news

This is an OVOS MediaProvider plugin for broadcast news feeds. It replaces the deprecated OCP search skill ovos-skill-news.

The deprecated skill broadcast ovos.common_play.query over the bus and waited for skills to answer. The OCP pipeline now loads MediaProvider plugins in-process, gates them by routing, and calls search() directly.

This plugin ships a curated News.json catalog (feed name, uri, aliases, language, and world-vs-local flag). It scores each feed against the query title, request language, and region, and returns mediavocab.Release objects.

Feed URIs keep their original extractor prefix (rss//…, news//…, youtube.channel.live//…), so the OCP playback layer resolves them exactly as the deprecated skill did.

Install

pip install ovos-media-provider-news

Usage

The OCP pipeline discovers the plugin through its entry point and calls search() with the parsed query signals:

from ovos_media_provider_news import NewsMediaProvider
from mediavocab import Signals

provider = NewsMediaProvider()
results = provider.search(Signals(title="play the news"), lang="en-us")

A bare NEWS request with no title browses the catalog, and each language's default feed floats to the top. The call returns an empty list on failure.

Routing

Axis Value
media NEWS
playback_type AUDIO
genre_filter (none)

Entry point

[project.entry-points."opm.media.provider"]
news = "ovos_media_provider_news:NewsMediaProvider"

Configuration

Key Default Description
default_feed (per-language default) Feed name to boost as the user's preferred station.

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_media_provider_news-0.0.1a5.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

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

ovos_media_provider_news-0.0.1a5-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file ovos_media_provider_news-0.0.1a5.tar.gz.

File metadata

File hashes

Hashes for ovos_media_provider_news-0.0.1a5.tar.gz
Algorithm Hash digest
SHA256 6d53f92f90fbe852ec8ae0404052a711a909b2ec963f649014bdf18d074b5202
MD5 2cb212c02d4555c46c8737d6ef050819
BLAKE2b-256 3e8bb7b4fd11247223d7e85145c64b111f7e6ae67c2db03b69e9c3c0d409fc42

See more details on using hashes here.

File details

Details for the file ovos_media_provider_news-0.0.1a5-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_media_provider_news-0.0.1a5-py3-none-any.whl
Algorithm Hash digest
SHA256 71ebffb9a20c1b1ebe270ef02789fbf97e3eb9246680c42a5763ab30b0c4fa00
MD5 5a6da56d5e26a1227bb8312b1a6d061f
BLAKE2b-256 13723db639f767401746d5e4243dadd6bfa66844f1a40de41528f71e8faa9222

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1a5 This release

2 files

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