From 3e713d2ea87da55b9f831dabcb91031f869c2d31 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 5 Oct 2024 07:48:38 +0530 Subject: [PATCH] pep8 --- recipes/liberation.recipe | 3 ++- recipes/reflex_cz.recipe | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/recipes/liberation.recipe b/recipes/liberation.recipe index 999ec2e1d5..dd1821330d 100644 --- a/recipes/liberation.recipe +++ b/recipes/liberation.recipe @@ -10,9 +10,10 @@ import time from datetime import datetime, timedelta from urllib.parse import quote, urlencode, urlparse +from mechanize import Request + from calibre import browser from calibre.web.feeds.news import BasicNewsRecipe -from mechanize import Request def resize(x): diff --git a/recipes/reflex_cz.recipe b/recipes/reflex_cz.recipe index 93c1c035b5..2d9c91562a 100644 --- a/recipes/reflex_cz.recipe +++ b/recipes/reflex_cz.recipe @@ -2,10 +2,15 @@ # vim:fileencoding=utf-8 from calibre.web.feeds.news import AutomaticNewsRecipe + class ReflexCzRecipe(AutomaticNewsRecipe): __author__ = 'Mailo' title = 'Reflex' - description = 'Reflex.cz je každodenní kritický průvodce aktuálním domácím i světovým děním. Názorový a autorský online magazín kultovního společenského týdeníku Reflex inteligentnímu čtenáři nabízí komentáře, glosy a originální články od vyhlášených autorů J.X. Doležala, Milana Tesaře, Bohumila Pečinky nebo Marka Stoniše. Za poplatek je na stránkách dostupný také unikátní archiv tištěného Reflexu, včetně aktuálního čísla.' + description = ( + 'Reflex.cz je každodenní kritický průvodce aktuálním domácím i světovým děním.' + ' Názorový a autorský online magazín kultovního společenského týdeníku Reflex inteligentnímu čtenáři nabízí komentáře,' + ' glosy a originální články od vyhlášených autorů J.X. Doležala, Milana Tesaře, Bohumila Pečinky nebo Marka Stoniše.' + ' Za poplatek je na stránkách dostupný také unikátní archiv tištěného Reflexu, včetně aktuálního čísla.') oldest_article = 10 max_articles_per_feed = 100 auto_cleanup = True @@ -16,4 +21,3 @@ class ReflexCzRecipe(AutomaticNewsRecipe): language = 'cs' cover_url = 'https://1958898586.rsc.cdn77.org/dist/assets/reflex/logo-reflex.svg' -