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
Metadata
Release files for ovos-ocp-rss-plugin 0.1.3a7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos_ocp_rss_plugin-0.1.3a7.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_ocp_rss_plugin-0.1.3a7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / ovos_ocp_rss_plugin-0.1.3a7.tar.gz
| Download URL | ovos_ocp_rss_plugin-0.1.3a7.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38d34da170b0525e5d28239836dd85a6000401be3c9e998ce8ff4d45dc603add
|
|
BLAKE2b-256 checksum How to use checksums |
902c6da7193c775934d3de3f7c1d95403aaab522f33834bea9ddf30360d38593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ovos_ocp_rss_plugin-0.1.3a7-py3-none-any.whl
| Download URL | ovos_ocp_rss_plugin-0.1.3a7-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fae7ebd101ba26b4610f738d29f5305386e955cd7e4c1203f3b8c3cc63ceba7
|
|
BLAKE2b-256 checksum How to use checksums |
3ffa3585af8a672179d28e70b0e9c5c9329370056e32d2f9a6e874e2470b2a35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|