From 983238a811e056c2d7321a8351d5f977c89809ad Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Aug 2020 08:37:55 +0530 Subject: [PATCH] Update Popular Science --- recipes/popscience.recipe | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/popscience.recipe b/recipes/popscience.recipe index b7de4ccb51..a7b5dd079f 100644 --- a/recipes/popscience.recipe +++ b/recipes/popscience.recipe @@ -33,7 +33,8 @@ class AdvancedUserRecipe1282101454(BasicNewsRecipe): content = item.find('content:encoded', {'content': 'http://purl.org/rss/1.0/modules/content/'}).text content = '

{title}

{desc}

{author}

{content}
'.format( title=title, author=author, desc=desc, content=content) - desc += ' by ' + author + if author: + desc += ' by ' + author with PersistentTemporaryFile('popsci.html') as pt: pt.write(content.encode('utf-8')) ans[section].append({