This commit is contained in:
Kovid Goyal 2024-07-20 09:44:53 +05:30
parent 3bcf2c0d1b
commit ddfc32899f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -199,7 +199,9 @@ class TheAtlantic(BasicNewsRecipe):
self.cover_url = img['src'] self.cover_url = img['src']
current_section, current_articles = 'Cover Story', [] current_section, current_articles = 'Cover Story', []
feeds = [] feeds = []
for x in soup.findAll(**prefix_classes('TocFeaturedSection_heading__ TocSection_heading__ TocHeroGridItem_hedLink__ TocGridItem_hedLink__')): for x in soup.findAll(**prefix_classes(
'TocFeaturedSection_heading__ TocSection_heading__ TocHeroGridItem_hedLink__ TocGridItem_hedLink__ RiverGridItem_hedLink__'
)):
cls = x['class'] cls = x['class']
if not isinstance(cls, str): if not isinstance(cls, str):
cls = ' '.join(cls) cls = ' '.join(cls)