mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5b6a318d8a
commit
3feca0981a
@ -177,7 +177,7 @@ class Economist(BasicNewsRecipe):
|
||||
for a in section.findNextSiblings('a', href=True):
|
||||
spans = a.findAll('span')
|
||||
if len(spans) == 2:
|
||||
title = '{}: {}'.format(*map(self.tag_to_string, spans))
|
||||
title = u'{}: {}'.format(*map(self.tag_to_string, spans))
|
||||
else:
|
||||
title = self.tag_to_string(a)
|
||||
articles.append({'title': title, 'url': process_url(a['href'])})
|
||||
|
@ -177,7 +177,7 @@ class Economist(BasicNewsRecipe):
|
||||
for a in section.findNextSiblings('a', href=True):
|
||||
spans = a.findAll('span')
|
||||
if len(spans) == 2:
|
||||
title = '{}: {}'.format(*map(self.tag_to_string, spans))
|
||||
title = u'{}: {}'.format(*map(self.tag_to_string, spans))
|
||||
else:
|
||||
title = self.tag_to_string(a)
|
||||
articles.append({'title': title, 'url': process_url(a['href'])})
|
||||
|
Loading…
x
Reference in New Issue
Block a user