dlc / sevenroot-feedparser

Create a generic parser for RSS and Atom feeds, in the vein of Python's Universal Feed Parser.
GNU General Public License v3.0
0 stars 0 forks source link

RSS 2.0 Channel parser assumes all elements are contiguous #9

Closed dlc closed 9 years ago

dlc commented 9 years ago

The APOD feed has a <textInput> field that occurs after the <item> fields, so extract_channel does not pick it up. This is perfectly valid RSS but breaks my parser's assumptions.

Possible solution is to call extract_items first, having it operate destructively on the input data, and then whatever is left is the channel.

dlc commented 9 years ago

Test for this is at af806e233e24188bd26edcc1f278c9b5e077d862.

dlc commented 9 years ago

This is now fixed, in c08ccc82764a43c9a8aca57ec7409d52d08d6443.