This commit is contained in:
Kovid Goyal 2024-01-10 11:01:09 +05:30
parent 4c7797c7f6
commit aca9529852
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -62,7 +62,6 @@ class ForeignPolicy(BasicNewsRecipe):
if current_section.lower() == 'recent issues': if current_section.lower() == 'recent issues':
break break
else: else:
articles = []
title = self.tag_to_string(x) title = self.tag_to_string(x)
a = x.parent a = x.parent
url = a['href'] url = a['href']
@ -76,4 +75,3 @@ class ForeignPolicy(BasicNewsRecipe):
self.log('\t', title, url, '\n\t', desc) self.log('\t', title, url, '\n\t', desc)
feeds_dict[current_section].append({"title": title, "url": url, "description": desc}) feeds_dict[current_section].append({"title": title, "url": url, "description": desc})
return [(section, articles) for section, articles in feeds_dict.items()] return [(section, articles) for section, articles in feeds_dict.items()]