This commit is contained in:
Kovid Goyal 2021-06-20 22:00:22 +05:30
parent ff01e16610
commit 2bfc3d1e7f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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