From fb718271eaa76d98b0636ea2ce4b7b8f0657bdc3 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 22 Dec 2020 13:08:31 +0100 Subject: [PATCH] =?UTF-8?q?Add=20recipe=20=E2=80=9CSchwarzerPfeil=E2=80=9D?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recipes/schwarzerpfeil.recipe | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 recipes/schwarzerpfeil.recipe diff --git a/recipes/schwarzerpfeil.recipe b/recipes/schwarzerpfeil.recipe new file mode 100644 index 0000000000..c0334a1205 --- /dev/null +++ b/recipes/schwarzerpfeil.recipe @@ -0,0 +1,28 @@ +# -*- mode: python; -*- +__license__ = 'GPL v3' + +''' +SchwarzerPfeil Calibre recipe. +''' + +from calibre.web.feeds.recipes import BasicNewsRecipe + +class Schwarzerpfeil(BasicNewsRecipe): + title = 'SchwarzerPfeil' + description = 'Das partizipative Mag von und für die antiautoritäre Bewegung' + publication_type = 'magazine' + language = 'de' + timefmt = ' [%d. %B %Y]' + max_articles_per_feed = 100 + oldest_article = 30 + use_embedded_content = True + no_stylesheets = True + auto_cleanup = False + + feeds = [ + ('Artikel', 'https://schwarzerpfeil.de/feed/'), + ('Kommentare', 'https://schwarzerpfeil.de/comments/feed/') + ] + + def get_cover_url(self): + return "https://schwarzerpfeil.de/wp-content/uploads/2020/09/12-1.png"