ThosRTanner / inforss

Newsreader for Palemoon browser
Mozilla Public License 2.0
8 stars 0 forks source link

Clean up construction of headlines #288

Open ThosRTanner opened 4 years ago

ThosRTanner commented 4 years ago

This is, not to put too fine a point of it, a mess.

Each feed returns a list of items to the Single_Feed class. Then feed type specific processing is done on each item as they are converted into headlines.

The individual feed handler should just return a list of headlines and do all the specific mangling itself. Some of the mangling may be common, in which case Single Feed can carry on providing as static functions (or the headline constructor can do it)

Probably best to yield each headline from the child class but beware of how the deletion of old headlines works.