glance icon indicating copy to clipboard operation
glance copied to clipboard

Alternate RSS Feed Titles

Open nash-an opened this issue 1 year ago • 3 comments

With certain news aggregates, it is preferred to use the source as the title for the RSS feed rather than the RSS feed's title.

For example, with https://news.google.com/news/rss, it would be better for the individual articles to use the <source> attribute (ex. CNN) rather than the

attribute (Top stories - Google News)

nash-an avatar Jun 18 '24 00:06 nash-an

Current: image

With title as <source> (or any other custom attribute): image

nash-an avatar Jun 18 '24 00:06 nash-an

I am unfamiliar with Go, but I tried my hand at adding this feature:

https://github.com/nash-an/glance-rss-enhancements/commit/964c60d5fc69994a5a109f95a37627c4c9106cba

New config option added, UseSource bool. When true, RSS feed will replace the rssItem.ChannelName with the item's source title, rather than the specified title or feed title.

It's not exactly an elegant solution, mostly because the gofeed library does not have the source attribute as part of its default gofeed.Feed struct, but it works.

nash-an avatar Jun 19 '24 02:06 nash-an

A bit similar to PR #215, except that PR uses the domain as the source mainly to address FreshRSS user queries

ralphocdol avatar Sep 13 '24 15:09 ralphocdol