Wrong title parsing
Christopher Armstrong
radix at twistedmatrix.com
Mon Aug 25 01:05:31 EST 2008
On Sun, Aug 24, 2008 at 6:38 AM, Felipe Contreras
<felipe.contreras at gmail.com> wrote:
> Hi,
>
> The way the title is parsed is wrong. Instead of taking the title tag
> of title you are taking any 'title' argument or tag, for example:
>
> <media:content url="http://a.wordpress.com/avatar/felipec-128.jpg"
> medium="image">
> <media:title type="html">FelipeC</media:title>
> </media:content>
>
> You can see that in http://planet-im.com/.
>
> Anytime an image is included the title of the post is wrongly using
> the title of the image.
Hi Felipe. This is because Wordpress generates invalid XML; you may
notice that the default XML namespace is not defined in that feed.
Planet doesn't deal well with this, but apparently Venus knows how to
work around it. Venus is a fork of Planet which is (perhaps) better
maintained. I haven't actually tried it yet, so my planet still has
this bug, but I plan to soon.
Unfortunately, it has a web site that's about as crappy as Planet's ;-)
http://www.intertwingly.net/code/venus/
--
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
More information about the devel
mailing list