From 8959ada93fb313c67d62ee24c59bb0ccfd1cf555 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 2 Apr 2023 19:28:58 +0530 Subject: [PATCH] pep8 --- recipes/mediapart.recipe | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes/mediapart.recipe b/recipes/mediapart.recipe index 287251e9b8..2606d284b0 100644 --- a/recipes/mediapart.recipe +++ b/recipes/mediapart.recipe @@ -19,7 +19,7 @@ __copyright__ = '2021, Loïc Houpert . Adapted from: Mediapart ''' -from datetime import date, datetime, timezone, timedelta +from datetime import datetime, timezone, timedelta from calibre.ptempfile import PersistentTemporaryFile from calibre.web.feeds.news import BasicNewsRecipe, classes @@ -30,7 +30,7 @@ class Mediapart(BasicNewsRecipe): publication_type = 'newspaper' language = 'fr' needs_subscription = True - + use_embedded_content = False no_stylesheets = True @@ -39,12 +39,12 @@ class Mediapart(BasicNewsRecipe): 'news__heading__top news__heading__center news__body__center__article' ) ] - + remove_tags = [ classes('action-links media--rich read-also login-subscribe print-source_url'), dict(name='svg'), ] - + conversion_options = {'smarten_punctuation': True} masthead_url = "https://raw.githubusercontent.com/lhoupert/calibre_contrib/main/mediapart_masthead.png" @@ -52,7 +52,7 @@ class Mediapart(BasicNewsRecipe): ignore_duplicate_articles = {'title'} resolve_internal_links = True remove_empty_feeds = True - + articles_are_obfuscated = True def get_obfuscated_article(self, url): @@ -170,4 +170,4 @@ class Mediapart(BasicNewsRecipe): except Exception: self.log.exception('Failed to generate default cover') return False - return True \ No newline at end of file + return True