-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
[feature request] Custom titles for RSS feeds #13
Comments
How would you want to tell the application of the name? I was thinking that it could be in the config, where the URL to the feed had a name entry at one end (default to the existing name if it's not specified), which was stored in the Article (as 'DisplayName'?) |
That's an option, yeah. It could also be Newsboat-style: |
The could work, it's frowned upon for tildes to be in URLs so splitting on a tilde would be .. kind of safe? I'll put a PR together over the next couple of days, that you can checkout and test? |
Just a note, ~ has historically been used for a lot of urls, for example apache's UserDirs docs https://httpd.apache.org/docs/2.4/howto/public_html.html
While looking at alternative RSS readers, this caught my eye and I exported my list of feeds and 2 out of the 123 contained a ~ in the url. While this is a small number, it is used on some sites and historically was more widely used. |
@kormoc That's a good point It's trivial for me to choose the appropriate character to split on (there's two places it's specified - I could even make it a constant to make it easier to change) Do you have a suggested delimiter? (do I have to write a regexp for " ~" (space tilde) |
I think my suggestion would be to delimit on ' ~ ' If a url has ' ~ ' in it, like |
I think that will have to be documented @Lallassu Should I make a documentation change with my PR? |
@kormoc Oh, hrm, I couldn't "see" the spaces around the tilde in your comment - what if we said that tildes in URLS need to be encoded to %7E or %7e instead? I cannot tests without an example of a feed with a tilde in the URL :( |
sadly the two feeds I use are private feeds :( I think if you document it, it can work, however I think that given spaces already have to be encoded and tildes don't, that it's more user friendly to delimit on space tilde space or similar. That said, this is just my $0.02 and it is likely not a overly used thing :) |
@kormoc I think that, as things stand right now, my PR will break feeds for anyone that has a feed with a ~ within it, with those users not understanding that "it used to work". So, for backward compatibility, I think a space tilde is the right direction. The natural inclination for me is to write a space then a ~between the URL and the optional name. examples :
|
Perhaps since we are using json configuration marshaled into Go structs we could leverage this. So if the feeds are structured in the same way as for example Example:
Empty names would then use the default name as before. This way we don't get the "fuzziness" of using delimiters. |
I've updated the PR The example gorss.conf shows the allowable examples: |
Added in #15 by @shaneHowearth, Thanks and nice work @shaneHowearth! |
This looks like an underrated feature 🙂
It would be nice to have custom titles in the config overriding what's originally in the feed. Mostly for reasons to keep multiple resources consistent and clean for view.
The text was updated successfully, but these errors were encountered: