Skip to main content
Pre-release

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

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_ocp_rss_plugin-0.1.3a6.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

ovos_ocp_rss_plugin-0.1.3a6-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for ovos_ocp_rss_plugin-0.1.3a6.tar.gz
Algorithm Hash digest
SHA256 30f728e339cfdc0589cfa4ec10ee626dfb12bb946d73d138b2e1b248e168f576
MD5 5c41467d37c1a05e47a3fa6720e1b492
BLAKE2b-256 54d3a2f7c2d3ff6294e5795468b6ed6ee83b2b5403fe132568a0bf01feb52ebc

See more details on using hashes here.

File details

Details for the file ovos_ocp_rss_plugin-0.1.3a6-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_ocp_rss_plugin-0.1.3a6-py3-none-any.whl
Algorithm Hash digest
SHA256 98b894b7693e26dedc8dade679cac4ef7460e2ebb4d5ab8a8f905986d9dc0e09
MD5 7acd71def37615bc95e50aabad07b7a6
BLAKE2b-256 61a637a41202878dcc5f2a6946f9a99ac6adef1e72630dadbfd7c6ccc5012c11

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page