Feature #2765
openMake an RSS feed for any Streams category
0%
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 <greg@qbix.com>
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
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.
Updated by Gregory Magarshak over 2 years ago
- Due date changed from 01/29/2023 to 04/18/2023
- Category set to Browser Features