Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate RSS Feed Titles #146

Open
nash-an opened this issue Jun 18, 2024 · 3 comments
Open

Alternate RSS Feed Titles #146

nash-an opened this issue Jun 18, 2024 · 3 comments

Comments

@nash-an
Copy link

nash-an commented Jun 18, 2024

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 <title> attribute (Top stories - Google News)

@nash-an
Copy link
Author

nash-an commented Jun 18, 2024

Current:
image

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

@nash-an
Copy link
Author

nash-an commented Jun 19, 2024

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

nash-an@964c60d

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.

@ralphocdol
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants