From 48ed5c63f5e04f963b55a98551415af7c4098b0b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 12 Jul 2025 22:35:56 +0530 Subject: [PATCH] pep8 --- recipes/ancient_egypt.recipe | 2 +- recipes/military_history.recipe | 2 +- recipes/minerva_magazine.recipe | 2 +- recipes/world_archeology.recipe | 2 +- src/calibre/utils/formatter_functions.py | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/recipes/ancient_egypt.recipe b/recipes/ancient_egypt.recipe index 7a844c6109..a07d697fba 100644 --- a/recipes/ancient_egypt.recipe +++ b/recipes/ancient_egypt.recipe @@ -32,7 +32,7 @@ class ancientegypt(BasicNewsRecipe): keep_only_tags = [ dict(attrs={'class': lambda x: x and any(tag in x for tag in [ - '__image', '__header', '__background', + '__image', '__header', '__background', '__body_area', '__author__text', '__date' ])}) ] diff --git a/recipes/military_history.recipe b/recipes/military_history.recipe index 0a7b62d8e8..724796cc9a 100644 --- a/recipes/military_history.recipe +++ b/recipes/military_history.recipe @@ -31,7 +31,7 @@ class milthist(BasicNewsRecipe): keep_only_tags = [ dict(attrs={'class': lambda x: x and any(tag in x for tag in [ - '__image', '__header', '__background', + '__image', '__header', '__background', '__body_area', '__author__text', '__date' ])}) ] diff --git a/recipes/minerva_magazine.recipe b/recipes/minerva_magazine.recipe index 3624e5e882..e4260fed72 100644 --- a/recipes/minerva_magazine.recipe +++ b/recipes/minerva_magazine.recipe @@ -31,7 +31,7 @@ class minerva(BasicNewsRecipe): keep_only_tags = [ dict(attrs={'class': lambda x: x and any(tag in x for tag in [ - '__image', '__header', '__background', + '__image', '__header', '__background', '__body_area', '__author__text', '__date' ])}) ] diff --git a/recipes/world_archeology.recipe b/recipes/world_archeology.recipe index 528a58d8d2..b9a5bbc87e 100644 --- a/recipes/world_archeology.recipe +++ b/recipes/world_archeology.recipe @@ -33,7 +33,7 @@ class worldarch(BasicNewsRecipe): keep_only_tags = [ dict(attrs={'class': lambda x: x and any(tag in x for tag in [ - '__image', '__header', '__background', + '__image', '__header', '__background', '__body_area', '__author__text', '__date' ])}) ] diff --git a/src/calibre/utils/formatter_functions.py b/src/calibre/utils/formatter_functions.py index b0f8c9c7e8..92ba00f80f 100644 --- a/src/calibre/utils/formatter_functions.py +++ b/src/calibre/utils/formatter_functions.py @@ -1386,6 +1386,7 @@ The following shows what is returned for various parameters: else: return _("No book formats found so the path can't be generated") + class BuiltinHumanReadable(BuiltinFormatterFunction): name = 'human_readable' arg_count = 1