Project

General

Profile

Actions

Feature #2765

open

Make an RSS feed for any Streams category

Added by Gregory Magarshak over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Browser Features
Start date:
12/12/2022
Due date:
04/18/2023 (over 2 years late)
% Done:

0%

Estimated time:
3.00 h

Description

Let's add functionality to the Streams plugin that will publish an RSS feed from any Streams category.

1. Read about relations -- this issue relies on that documentation to be completed

2. We should make a “top items” RSS feed for any stream, related streams, so we can then have bots repost them in eg telegram channel.

3. First, you will need to add a route in the Streams/config/plugin.json (read the guide) that will look like this:

Streams/daily/:publisherId/:streamName[].rss
Streams/weekly/:publisherId/:streamName[].rss

It would just take relations which had updatedTime > a week ago, and make RSS feed from them. The UUIDs could be derived from the stream publisherId and streamName, eg by using Streams::toHexString

Here is the format:
https://en.wikipedia.org/wiki/RSS

Gregory Magarshak <>
1:16 PM (6 hours ago)
to andrey

The links would be to the url $stream->url()

The pubDate of the stream would be from the timestamp of the relatedTo, and last

The lastBuildDate would be the updatedTime of the stream itself

Both dates would be in in GMT

  • TTL can be 180 (take it from config or stream attributes)
  • title would be title field
  • description would be content field
  • guid would be toHexString and permalink is true
  • channel title would be title of category stream
  • channel description would be content field in category stream
Actions #1

Updated by Andrey Tepaykin over 2 years ago

One option "relationTypes" should be added to query string, it will contain array of possible relation types.

Actions #2

Updated by Gregory Magarshak over 2 years ago

  • Due date changed from 01/29/2023 to 04/18/2023
  • Category set to Browser Features
Actions

Also available in: Atom PDF