Planetplnate and RSS feeds

Found a bug? Tell us!!
Post Reply
CaptainCrunch
Regular
Posts: 34
Joined: Thu Oct 20, 2005 4:51 pm
Contact:

Planetplnate and RSS feeds

Post by CaptainCrunch »

Heya guys!

I noticed a problem regarding the RSS feeds since my upgrade to 1.0-beta1. Unfortunately, the cannot be parsed by Planetplanet-scripts anymore. This is what I keep getting as output:

Code: Select all

]ERROR:root:Update from <http://blog.roothell.org/feeds/index.rss2> failed
Traceback (most recent call last):
File "planet.py", line 134, in ?
channel.update()
File "/var/www/www-rootforum/rootforum.org/planet/planet-20050611/planetlib.py", line 184, in update
self._update(baseuri, data)
File "/var/www/www-rootforum/rootforum.org/planet/planet-20050611/planetlib.py", line 288, in _update
     feed.feed(data)
   File "/usr/lib/python2.3/sgmllib.py", line 95, in feed
     self.goahead(0)
   File "/usr/lib/python2.3/sgmllib.py", line 134, in goahead
     k = self.parse_endtag(i)
   File "/usr/lib/python2.3/sgmllib.py", line 293, in parse_endtag
     self.finish_endtag(tag)
   File "/usr/lib/python2.3/sgmllib.py", line 333, in finish_endtag
     self.unknown_endtag(tag)
   File "/var/www/www-rootforum/rootforum.org/planet/planet-20050611/feedparser.py", line 358, in unknown_endtag
     method()
   File "/var/www/www-rootforum/rootforum.org/planet/planet-20050611/feedparser.py", line 778, in _end_content
     value = self.pop('content')
   File "/var/www/www-rootforum/rootforum.org/planet/planet-20050611/feedparser.py", line 480, in pop
     output = resolveRelativeURIs(output, self.baseuri)
   File "/var/www/www-rootforum/rootforum.org/planet/planet-20050611/feedparser.py", line 897, in resolveRelativeURIs
     data = p.output()
   File "/var/www/www-rootforum/rootforum.org/planet/planet-20050611/feedparser.py", line 853, in output
     return "".join(self.pieces)
I'm not sure if this bug is really caused by S9Y or if it is a bug of that Planet-Script. Cause I know of another blog that doesn't appear within that Planet (also using 1.0-beta1), I hope you have any idea, although I haven't found anything when searching.

Thanks in advance!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Planetplnate and RSS feeds

Post by garvinhicking »

Hi!

It seems as if the planet is not able to parse the 'content:encoded' elements properly.

You might want to edit your feed_20.tpl template and use "<description>" instead of "<content:encoded>" for the main content. However that should not be required, since using content:encoded has worked for the last 3 years without any major complaints :-)

But I don't see a change from 0.9 to 1.0 that could affect your RSS feeds to break?!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
CaptainCrunch
Regular
Posts: 34
Joined: Thu Oct 20, 2005 4:51 pm
Contact:

Post by CaptainCrunch »

But I don't see a change from 0.9 to 1.0 that could affect your RSS feeds to break?!
Well, I don't either. Also, changing content:encoded didn't help, so I think this looks more like a Planetplanet-problem.
Post Reply