Fix #5749 (SMH news feed broken)

This commit is contained in:
Kovid Goyal 2010-06-10 10:42:07 -06:00
parent a42985c57c
commit 624dfff639
2 changed files with 4 additions and 4 deletions

View File

@ -65,4 +65,4 @@ class Smh_au(BasicNewsRecipe):
,'url' :url ,'url' :url
,'description':description ,'description':description
}) })
return [(soup.head.title.string, articles)] return [(self.tag_to_string(soup.find('title')), articles)]

View File

@ -137,7 +137,7 @@ class Feed(object):
def populate_from_preparsed_feed(self, title, articles, oldest_article=7, def populate_from_preparsed_feed(self, title, articles, oldest_article=7,
max_articles_per_feed=100): max_articles_per_feed=100):
self.title = title if title else _('Unknown feed') self.title = unicode(title if title else _('Unknown feed'))
self.description = '' self.description = ''
self.image_url = None self.image_url = None
self.articles = [] self.articles = []