mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
58e933f394
commit
6c5d14ff4f
@ -41,13 +41,16 @@ class TheHindu(BasicNewsRecipe):
|
|||||||
if current_section and x.get('class', '') == 'tpaper':
|
if current_section and x.get('class', '') == 'tpaper':
|
||||||
a = x.find('a', href=True)
|
a = x.find('a', href=True)
|
||||||
if a is not None:
|
if a is not None:
|
||||||
|
title = self.tag_to_string(a)
|
||||||
|
self.log('\tFound article:', title)
|
||||||
current_articles.append({'url':a['href']+'?css=print',
|
current_articles.append({'url':a['href']+'?css=print',
|
||||||
'title':self.tag_to_string(a), 'date': '',
|
'title':title, 'date': '',
|
||||||
'description':''})
|
'description':''})
|
||||||
if x.name == 'h3':
|
if x.name == 'h3':
|
||||||
if current_section and current_articles:
|
if current_section and current_articles:
|
||||||
feeds.append((current_section, current_articles))
|
feeds.append((current_section, current_articles))
|
||||||
current_section = self.tag_to_string(x)
|
current_section = self.tag_to_string(x)
|
||||||
|
self.log('Found section:', current_section)
|
||||||
current_articles = []
|
current_articles = []
|
||||||
return feeds
|
return feeds
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user