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

from calibre.web.feeds.news import BasicNewsRecipe


class FootballUA(BasicNewsRecipe):
    title = 'Football.UA'
    __author__ = 'bugmen00t'
    description = (
        '\u0421\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u0438\u0439 \u043f\u043e\u0440\u0442\u0430\u043b'
        ' \u0432 \u0423\u043a\u0440\u0430\u0457\u043d\u0456,'
        ' \u043f\u0440\u0438\u0441\u0432\u044f\u0447\u0435\u043d\u0438\u0439 \u043b\u0438\u0448\u0435 \u0444\u0443\u0442\u0431\u043e\u043b\u0443.'
    )
    publisher = 'United Media Holding group'
    category = 'news'
    cover_url = 'https://s.ill.in.ua/i/news/570x380/212/212438.jpg'
    language = 'uk'
    no_stylesheets = False
    remove_javascript = False
    auto_cleanup = False
    remove_empty_feeds = True
    oldest_article = 3
    max_articles_per_feed = 20

    remove_tags_before = dict(name='article')

    remove_tags_after = dict(name='article')

    remove_tags = [dict(name='div', attrs={'class': 'bottom-info'}), dict(name='div', attrs={'class': 'social-buttons'})]

    feeds = [
        ('\u041d\u043e\u0432\u0438\u043d\u0438', 'https://football.ua/rss2.ashx'),
    ]
