mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Pull from trunk
This commit is contained in:
commit
65381a9a8e
@ -69,9 +69,9 @@ class Economist(BasicNewsRecipe):
|
|||||||
key = None
|
key = None
|
||||||
for tag in soup.findAll(['h1', 'h2']):
|
for tag in soup.findAll(['h1', 'h2']):
|
||||||
text = ''.join(tag.findAll(text=True))
|
text = ''.join(tag.findAll(text=True))
|
||||||
if tag.name == 'h1':
|
if tag.name in ('h1', 'h2') and 'Classified ads' in text:
|
||||||
if 'Classified ads' in text:
|
|
||||||
break
|
break
|
||||||
|
if tag.name == 'h1':
|
||||||
if 'The world this week' in text or 'The world this year' in text:
|
if 'The world this week' in text or 'The world this year' in text:
|
||||||
index_started = True
|
index_started = True
|
||||||
if not index_started:
|
if not index_started:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user