Open scripting opened 1 year ago
Good thing I didn't close this, because overnight I came up with a very low-tech solution that can later evolve into the complete one that I explained above.
<%feedNames%>
and store the JSON we got from reading feedNames.json. This may sound like a lot of processing but it really isn't much. It will add a small fraction of a second to the rendering of feedlandHome on the server. It will add some overhead even for people who don't use the feature, when we look for feedNames.json and don't find it. Is it worth the cost? I think it might be.
Would it be worth modifying the importer to allow for myTitle
and myDescription
to be set via import if the attributes are in the OPML file?
Would it be worth modifying the importer to allow for myTitle and myDescription to be set via import if the attributes are in the OPML file?
Probably. But I didn't want to go that far without thinking it through, concerned about abuse.
An idea came up in discussions the other day with @cagrimmett and it's a good one, something I've wanted for some time.
Motivation
Sometimes people give terrible titles to their feeds. For good reason, they can't visualize a context in which the title will appear, or the context they've come up with is too narrow. For example the other day I found a feed with a title that begins with a newline character followed by a tab. I can't imagine what provoked that, but it sure screws with the sorting algorithm in FeedLand when you want to view your feed list by title.
So the idea is this -- allow the user to give the feed a new title. And while we're at it, let them give it a new description as well.
The design
Possible problems
Why it can't be done now
I did an investigation into how this would be implemented, and the problem is that when FeedLand gets information about a feed internally it doesn't carry with the call any info about who the user is that it's being made on behalf of. And that function is called in a lot of places at all levels in the code. It would require significant change in how it's called.
This means what seems like a small feature would require a lot of careful work, I'd say it could be done in a week, and right now that's not feasible. Also the chance for breakage is high, and it's a stressful project, which isn't something i'm feeling like doing now (trying to get out of that mode, been doing it all year this year).
And that's not the only function that needs to be modified, just the most central one. :-)