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.1a6.tar.gz (17.1 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.1a6-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ovos_media_provider_news-0.0.1a6.tar.gz
Algorithm Hash digest
SHA256 4c2af05962044a427e3d5d0302040de6d2a1ea829f6d161175af943f273fb11d
MD5 2daf41755cc71aac13e04e847d18ecb6
BLAKE2b-256 60249b59fbb27903b5d006bc3f0d86ab3cc9db6e29e9102a4706855fffefe04d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ovos_media_provider_news-0.0.1a6-py3-none-any.whl
Algorithm Hash digest
SHA256 6ed7202c27fef4436703ac4a46b26a3bdd68e963be40b576aec9ac306e8383cc
MD5 4573218e48468e6cf9cd0c40aff8d2d5
BLAKE2b-256 455236865accbdaf8cc84ab2c030f58dadb1eb3add177b344cacd1c7143d9412

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1a6 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