#!/usr/bin/env python
# vim:fileencoding=utf-8

from calibre.web.feeds.news import BasicNewsRecipe


class Kholod(BasicNewsRecipe):
    title = u'Holod Media'
    description = u'Internet media whose authors search for exciting stories all over Russia and then tell them to readers.'
    __author__ = 'bugmen00t'
    publisher = 'Taisiya Bekbulatova'
    publication_type = 'blog'
    oldest_article = 60
    max_articles_per_feed = 100
    language = 'en_RU'
    cover_url = 'https://image.simplecastcdn.com/images/93a97011-6988-4787-8242-e202b2840fde/08e85f64-9901-44e1-b20c-7da01c5ce0c0/holodpodcastlogo.jpg'
    auto_cleanup = False
    no_stylesheets = False

    remove_tags_before = dict(name='h1')

    remove_tags_after = dict(
        name='div', attrs={'class': 'article__content the-content text-column'}
    )

    remove_tags = [dict(name='div', attrs={'class': 'inlinemore'})]

    feeds = [(u'Holod Media', 'https://holod.media/en/feed/'),
             (u'Opinion', 'https://holod.media/en/sections/opinion/feed/'),
             (u'Q&A', 'https://holod.media/en/sections/qa/feed/'),
             (u'Magazine', 'https://holod.media/en/sections/magazine/feed/')]
