This release is a pre-release and may not be stable for production use.
OCP RSS Plugin
This plugin lets OCP play RSS feeds. It reads a feed URL, finds the first entry with an audio link, and returns that link as a playable stream.
Install
pip install ovos-ocp-rss-plugin
Usage
OCP loads this plugin through the opm.ocp.extractor entry point and calls it when a stream URI starts with the rss prefix. You can also call the extractor directly:
from ovos_ocp_rss_plugin import OCPRSSFeedExtractor
stream = OCPRSSFeedExtractor.get_rss_first_stream(
"rss//https://www.pbs.org/newshour/feeds/rss/podcasts/show"
)
# stream = {"duration": ..., "title": ..., "timestamp": ..., "uri": "..."}
get_rss_first_stream returns a dictionary with duration, title, timestamp, and uri for the first entry that has an audio link. It returns an empty dictionary if the feed has no such entry or cannot be read.
Related projects
- OpenVoiceOS/ovos-media, the OCP media player that loads this extractor
- OpenVoiceOS/ovos-ocp-audio-plugin, the voice media player that OCP stream extractors plug into
- OpenVoiceOS/ovos-ocp-news-plugin, a sibling OCP stream extractor for news providers
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_ocp_rss_plugin-0.1.3a6.tar.gz.
File metadata
- Download URL: ovos_ocp_rss_plugin-0.1.3a6.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30f728e339cfdc0589cfa4ec10ee626dfb12bb946d73d138b2e1b248e168f576
|
|
| MD5 |
5c41467d37c1a05e47a3fa6720e1b492
|
|
| BLAKE2b-256 |
54d3a2f7c2d3ff6294e5795468b6ed6ee83b2b5403fe132568a0bf01feb52ebc
|
File details
Details for the file ovos_ocp_rss_plugin-0.1.3a6-py3-none-any.whl.
File metadata
- Download URL: ovos_ocp_rss_plugin-0.1.3a6-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98b894b7693e26dedc8dade679cac4ef7460e2ebb4d5ab8a8f905986d9dc0e09
|
|
| MD5 |
7acd71def37615bc95e50aabad07b7a6
|
|
| BLAKE2b-256 |
61a637a41202878dcc5f2a6946f9a99ac6adef1e72630dadbfd7c6ccc5012c11
|