mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5749 (SMH news feed broken)
This commit is contained in:
parent
a42985c57c
commit
624dfff639
@ -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)]
|
||||||
|
@ -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 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user