Lbry-desktop: RSS feed for channels

Created on 1 Mar 2020  路  4Comments  路  Source: lbryio/lbry-desktop

Filtering and managing content that Users are interested in is a challenge. I have RSS feed setups that are comfortable and give amazing powers to view/track content that I'm interested in. All the features that are needed is quite extensive, and it will be a challenge to implement.

Setting up an RSS feed for each channel will give the ability to add libry feeds to the same content readers.

Abstracting away all the filtering and managing logic from the platform to other tools that are focused explicitly on that and users are familiar with.

With some guidance I'm interested in implementing the feature.

consider soon good first issue help wanted new feature

Most helpful comment

Hey, thanks for the issue! There's a community rss feed up here: https://gitlab.melroy.org/melroy/lbry-channel-feed

Not sure when we'll run our own, but let us know if that one meets the requirements.

All 4 comments

Hey, thanks for the issue! There's a community rss feed up here: https://gitlab.melroy.org/melroy/lbry-channel-feed

Not sure when we'll run our own, but let us know if that one meets the requirements.

@tzarebczan imo this is a valid issue. It would involve writing a route that renders the claim list as RSS XML output. The URL to that route can then be embedded in page metadata and potentially linked on channel/search

@tzarebczan Thank you for the suggestion. It works as expected.
@kauffj Can you point me to the correct repository where the new route could be added? With that as a starting point, i'll try to implement this.

@gyalogmadar awesome! Happy to help and give a quick intro. If you hit trouble or have questions you can reply here or @kauffj after joining chat.lbry.org.

Since this would be a lbry.tv feature (as opposed to a general browser feature), most code should reside inside of the lbrytv folder. Since this is actually only be the 2nd server-side handled route (aside from the generic one that loads the client-side JS), patterns are not especially established inside of lbrytv.

So I think the simplest approach is to do this:

  1. Add an RSS channel route here: https://github.com/lbryio/lbry-desktop/blob/master/web/src/routes.js
  2. Create rss.js here: https://github.com/lbryio/lbry-desktop/tree/master/web/src
    3 rss.js should take a channel name plus claim id and use chainquery.js to fetch the information required to render XML.
  3. Chainquery provides SQL-like structure of LBRY metadata. You can see full schema here: https://github.com/lbryio/chainquery/blob/master/db/chainquery_schema.sql, but you'll probably only need to query the claims table.
  4. You will probably want/need to write a new method in chainquery.js specifically for fetching the information you need

  5. https://github.com/lbryio/lbry-desktop/blob/master/web/src/routes.js

Was this page helpful?
0 / 5 - 0 ratings