__license__ = 'GPL v3'
__copyright__ = '2013 - 2015, Darko Miletic <darko.miletic at gmail.com>'
'''
moreintelligentlife.com
'''

from calibre.web.feeds.news import BasicNewsRecipe


class MoreIntelligentLife(BasicNewsRecipe):
    title = 'More Intelligent Life'
    __author__ = 'Darko Miletic'
    description = "More Intelligent Life (moreintelligentlife.com) is the online version of Intelligent Life, a lifestyle and culture magazine from The Economist. The website offers not only content from the print edition, trickled out over the course of its shelf-life, but also the Editors' Blog, which carries daily posts from the editorial team-quickfire observations and opinions that allow readers to eavesdrop on the conversation in the office."  # noqa
    publisher = 'The Economist Newspaper ltd'
    category = 'arts,lifestyle,intelligent life,the economist,ideas,style,culture'
    oldest_article = 60
    max_articles_per_feed = 200
    no_stylesheets = True
    encoding = 'utf8'
    use_embedded_content = False
    language = 'en'
    remove_empty_feeds = True
    publication_type = 'website'
    auto_cleanup = True
    extra_css             = """
                               body{font-family: "DTL Fleischmann-Regular", serif}
                               img{margin-bottom: 0.4em; display:block}
                            """

    conversion_options = {
        'comment': description, 'tags': category, 'publisher': publisher, 'language': language
    }

    feeds = [(u'Articles', u'http://www.intelligentlifemagazine.com/rss/content')]
