I’m interested in some creating some functionality based around the tag that some feeds have. RSS 2.0 and Atom both describe this optional element. For instance Wordpress feeds will typically have some information in here denoting that they are coming from Wordpress, and usually a version too.
One assumption I am making is that this data is not useful in TTRSS itself and that a patch to add parsing and storing it would be skeptically received. A quick investigation leads me to think that such a patch would require a schema addition of a new column in ttrss_feeds, and an addition to SimplePie to include generator element parsing (in library/SimplePie/Source.php). Do let me know if this would be a welcome patch though.
So if I need to add this as a plugin, I think I could use HOOK_FEED_PARSED if I got generator added to SimplePie. Or HOOK_FEED_FETCHED if I chose to just parse the field out myself.
To store the data, I think I would need to use ttrss_plugin_storage. Name would be some string unique to my plugin (generated_store or something), and content would probably contain a key and a value maybe in the format : so a real example would be 13: Worpressv4
This is not ideal but I think queries that look for a row where the content column starts with a string representation of an integer will be mostly OK to work with.
Any thoughts overall?