# 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 cro6Recipe(BasicNewsRecipe):
    __author__  = 'bubak'
    title = u'Český rozhlas 6'
    description = 'Český rozhlas 6'
    oldest_article = 1
    max_articles_per_feed = 20

    feeds = [
            (u'Český rozhlas 6', u'http://www.rozhlas.cz/export/cro6/')
            ]


    language = 'cs'
    cover_url = 'http://www.rozhlas.cz/img/e5/logo/cro6.png'
    remove_javascript = True
    no_stylesheets = True

    remove_attributes = []
    remove_tags = [dict(name='div',   attrs={'class':['audio-play-all', 'poradHeaders', 'actions']}),
               dict(name='p', attrs={'class':['para-last']})]

    keep_only_tags = [dict(name='div', attrs={'id':'article'})]
