Page 1 of 1

Editing article titles before they're stored

Posted: 19 Apr 2013, 05:48
by MrChick

I want to prepend the author of an article in front of the title of said article.

Example: Title is "How to do something awesome", posted by author "Max" on feed Foobar which has articles of multiple authors, like Max, Franz and Heinrich.
I want this title to be changed to "[Max] How to do something awesome".
I'd prefer to do it as a plugin instead of hacking my tt-rss installation but I seem to run into a dead end.

I tried to approach it with hooking FEED_PARSED, but it seems that SimplePie only has getters on that info and no setters.

Any idea how I should approach this problem?

Re: Editing article titles before they're stored

Posted: 20 Apr 2013, 00:12
by Saliency
I don't know if it is the best way but one way you could do it which would be easy is to add an insert trigger to the DB.
You also can blast all your old data while you are at it.