# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import unicode_literals
from calibre.web.feeds.recipes import BasicNewsRecipe


class nfpkRecipe(BasicNewsRecipe):
    __author__ = 'bubak'
    title = u'Piratské noviny'
    publisher = u''
    description = 'nfpk.cz'
    oldest_article = 2
    max_articles_per_feed = 20
    use_embedded_content = False
    remove_empty_feeds = True

    feeds = [
        (u'Aktuality', u'http://www.piratskenoviny.cz/run/rss.php')
    ]

    language = 'cs'
    cover_url = 'http://www.piratskenoviny.cz/imgs/piratske-noviny.gif'
    remove_javascript = True
    no_stylesheets = True
    extra_css             = """
                            """

    remove_attributes = []
    remove_tags_before = dict(name='font', attrs={'size': '+3'})
    remove_tags_after = [dict(name='iframe')]
    conversion_options = {'linearize_tables': True}
