mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-21 09:34:53 +02:00
Update The Hindu
This commit is contained in:
parent
a968848316
commit
46f9b1ebd7
1 changed files with 3 additions and 1 deletions
|
|
@ -55,6 +55,8 @@ def preprocess_html(self, soup):
|
|||
source.extract()
|
||||
except Exception:
|
||||
pass
|
||||
for img in soup.findAll(attrs={'data-original': True}):
|
||||
img['src'] = img['data-original']
|
||||
# Place intro beneath the title, skip duplicates
|
||||
try:
|
||||
soup.h1.insert_after(soup.find('h2', attrs={'class': 'intro'}))
|
||||
|
|
@ -77,7 +79,7 @@ def populate_article_metadata(self, article, soup, first):
|
|||
|
||||
def articles_from_soup(self, soup):
|
||||
ans = []
|
||||
div = soup.find('section', attrs={'id': 'section_'})
|
||||
div = soup.find('section', attrs={'id': 'section_1'})
|
||||
if div is None:
|
||||
return ans
|
||||
for ul in div.findAll('ul', attrs={'class': 'archive-list'}):
|
||||
|
|
|
|||
Loading…
Reference in a new issue