HaveF / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

The parser does not track more that 1 <image> tag for a channel correctly #333

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Parse the file attached. It has 2 <image> tags for the channel
2. Check feed.image --- it doesn't contain the first one.

What is the expected output? What do you see instead?
Expected to see info about the both images

What version of the product are you using? On what operating system?
feedparser = 5.1
python 2.6 & 2.7
OS: Macos 10.6, CentOS5, CentOS6

Original issue reported on code.google.com by m...@sterch.net on 23 Mar 2012 at 1:20

Attachments:

GoogleCodeExporter commented 9 years ago
I can't find anything in the RSS specification that suggests that the image tag 
can occur more than once. Although the spec doesn't explicitly say that the 
image tag should or must only occur once, I think that feedparser is behaving 
correctly by only exposing one of the image tags, rather than creating a list 
of each one it finds.

It's unfortunate that Politico chose to create a useless second image tag that 
leads to a 404 Not Found (stupid decision on their part, huh?) but I don't see 
a reason to change feedparser's behavior from overwriting the first image info.

Original comment by kurtmckee on 5 Apr 2012 at 2:58