This commit is contained in:
Kovid Goyal 2025-02-28 22:33:30 +05:30
parent 6c1a08ee11
commit 3828068b84
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -201,7 +201,7 @@ class NewYorkTimes(BasicNewsRecipe):
url = adata.get('url')
summary = adata.get('summary')
headline = adata.get('headline')
if url and headline:
if url and headline and 'id' in headline:
title = data[headline['id']]['default']
article_map[adata['id']] = {
'title': title, 'url': url, 'description': summary or ''}