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.1a4.tar.gz (15.7 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.1a4-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ovos_media_provider_news-0.0.1a4.tar.gz
Algorithm Hash digest
SHA256 514fe4dae5c8b77cf0872bb89e9e3c1dbf095698b119a2b481ac3ebb538672c8
MD5 2b7f60ceab864b1f60f6ede41ad366ed
BLAKE2b-256 470b58e1552f88167891d5abd353fcb9c1f2b8bb7e8c4b73c1ec8315e5835647

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ovos_media_provider_news-0.0.1a4-py3-none-any.whl
Algorithm Hash digest
SHA256 aba89afb225a104e844420f5da6521877457e9979f0e789dfd658e0ded7477e4
MD5 b4b7131ea60c2bde398e9a5418e6b66c
BLAKE2b-256 74e62ed01eafb070f84a23ce46542af04d4a46facbd308edb707d2bcc12bfa47

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

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