mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ff01e16610
commit
2bfc3d1e7f
@ -69,9 +69,8 @@ class TheHindu(BasicNewsRecipe):
|
||||
try:
|
||||
desc = soup.find('meta', attrs={'name': 'description'}).get('content')
|
||||
if not desc.startswith('Todays paper'):
|
||||
desc = entity_to_unicode(desc)
|
||||
desc += '...' if len(desc) >= 199 else '' # indicate truncation
|
||||
article.text_summary = article.summary = desc
|
||||
article.text_summary = article.summary = entity_to_unicode(desc)
|
||||
except AttributeError:
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user