From cc5642f2a5bcc68827724ce750a5d72bfe4b5155 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 8 May 2017 08:20:28 +0530 Subject: [PATCH] Balkanist by Darko Miletic Fixes #1689203 [New recipe for Balkanist magazine](https://bugs.launchpad.net/calibre/+bug/1689203) --- recipes/balkanist.recipe | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 recipes/balkanist.recipe diff --git a/recipes/balkanist.recipe b/recipes/balkanist.recipe new file mode 100644 index 0000000000..59a92906cc --- /dev/null +++ b/recipes/balkanist.recipe @@ -0,0 +1,50 @@ +# -*- mode: python -*- +# -*- coding: utf-8 -*- + +__license__ = 'GPL v3' +__copyright__ = '2017, Darko Miletic ' +''' +http://balkanist.net/magazine +''' +from calibre.web.feeds.news import BasicNewsRecipe + + +class Pagina12(BasicNewsRecipe): + title = 'Balkanist' + __author__ = 'Darko Miletic' + description = 'Balkanist is an experimental, bilingual platform featuring politics, analysis, culture, and criticism for a smart international audience underwhelmed by what is currently on offer. Our aim is to provide bold, uncompromising coverage of the Balkan region and everything to its East. We are currently entirely independent, self- and reader-funded, and are not affiliated with any organization, company, or government institution.' # noqa + publisher = 'Balkanist' + category = 'news, politics, Balkans' + oldest_article = 30 + no_stylesheets = True + encoding = 'utf8' + use_embedded_content = False + language = 'en' + remove_empty_feeds = True + publication_type = 'magazine' + auto_cleanup = True + masthead_url = 'http://media.balkanist.net/2013/07/Balkanist-Magazine-cover.png' + ignore_duplicate_articles = {'url'} + extra_css = """ + body{font-family: Lora,serif} + img{margin-top:1em; margin-bottom: 1em; display:block} + """ + + conversion_options = { + 'comment': description, + 'tags': category, + 'publisher': publisher, + 'language': language + } + + remove_tags = [ + dict(name=['meta', 'link']), + ] + + feeds = [ + (u'Magazine', u'http://balkanist.net/magazine/feed/'), + (u'News', u'http://balkanist.net/news/feed/'), + (u'Commentary', u'http://balkanist.net/commentary/feed/'), + (u'Arts and Culture', u'http://balkanist.net/arts-and-culture/feed/'), + (u'Politics', u'http://balkanist.net/politics/feed/'), + ]