mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-07 05:55:34 +01:00
Pull from trunk
This commit is contained in:
commit
65381a9a8e
1 changed files with 2 additions and 2 deletions
|
|
@ -69,9 +69,9 @@ def economist_parse_index(self):
|
|||
key = None
|
||||
for tag in soup.findAll(['h1', 'h2']):
|
||||
text = ''.join(tag.findAll(text=True))
|
||||
if tag.name in ('h1', 'h2') and 'Classified ads' in text:
|
||||
break
|
||||
if tag.name == 'h1':
|
||||
if 'Classified ads' in text:
|
||||
break
|
||||
if 'The world this week' in text or 'The world this year' in text:
|
||||
index_started = True
|
||||
if not index_started:
|
||||
|
|
|
|||
Loading…
Reference in a new issue