From 792c2ca847e8fd24496a02daff4d92d64f318a1d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 Nov 2020 06:56:07 +0530 Subject: [PATCH] Update Spectator Magazine Fixes #1902397 [Spectator Magazine no author names](https://bugs.launchpad.net/calibre/+bug/1902397) --- recipes/spectator_magazine.recipe | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/recipes/spectator_magazine.recipe b/recipes/spectator_magazine.recipe index bc286f7bf8..856df48858 100644 --- a/recipes/spectator_magazine.recipe +++ b/recipes/spectator_magazine.recipe @@ -108,16 +108,14 @@ class Spectator(BasicNewsRecipe): a('

{}

'.format(byline)) if entry.get('author'): for au in reversed(entry['author']): - au = entry['author'][0] cac = '' if au.get('caricature'): - cac = ''.format(au['caricature']['url']) - a('
{}
'.format(au['caricature']['url']) + a('
{} {}
'.format(cac, absolutize(au['url']), au['title'])) + if entry.get('hero_image'): hi = entry['hero_image'][0] a('
'.format(hi['url'])) - if hi.get('description'): - a('
{}
'.format(hi['description'])) a(entry['text_body']) section = 'Unknown' if entry.get('topic'):