From f2043877acdde7052d1d9b7eabc765a2ad4b9711 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 Jul 2025 21:03:05 +0530 Subject: [PATCH] pep8 --- recipes/economist_news.recipe | 3 ++- src/calibre/db/categories.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/economist_news.recipe b/recipes/economist_news.recipe index 85d3e5e19a..957951b9c8 100644 --- a/recipes/economist_news.recipe +++ b/recipes/economist_news.recipe @@ -173,8 +173,9 @@ class NoArticles(Exception): def get_content(url_): - from calibre import browser from mechanize import Request + + from calibre import browser headers = { 'User-Agent': 'TheEconomist-Liskov-android', 'accept': 'multipart/mixed; deferSpec=20220824, application/json', diff --git a/src/calibre/db/categories.py b/src/calibre/db/categories.py index 279126dbbb..79f9fc2d9b 100644 --- a/src/calibre/db/categories.py +++ b/src/calibre/db/categories.py @@ -98,7 +98,7 @@ def create_tag_class(category, fm): if ( ( - ( category == 'authors' or + (category == 'authors' or (cat['display'].get('is_names', False) and cat['is_custom'] and cat['is_multiple'] and dt == 'text')