# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai
from calibre.web.feeds.news import BasicNewsRecipe


class CzasGentlemanow(BasicNewsRecipe):
    title = u'Czas Gentlemanów'
    __author__ = 'fenuks'
    description = u'Historia mężczyzn z dala od wielkiej polityki'
    category = 'blog'
    language = 'pl'
    cover_url = 'https://czasgentlemanow.pl/wp-content/uploads/2012/10/logo-Czas-Gentlemanow1.jpg'
    ignore_duplicate_articles = {'title', 'url'}
    oldest_article = 7
    max_articles_per_feed = 100
    extra_css = '.gallery-item {float:left; margin-right: 10px; max-width: 20%;} .alignright {text-align: right; float:right; margin-left:5px;}\
    .wp-caption-text {text-align: left;} img.aligncenter {display: block; margin-left: auto; margin-right: auto;} .alignleft {float: left; margin-right:5px;}'
    no_stylesheets = True
    remove_empty_feeds = True
    use_embedded_content = False
    keep_only_tags = [dict(name='div', attrs={'class': 'post-wrapper'})]
    remove_tags = [dict(attrs={'class': ['awac-wrapper', 'post-bottom', 'comment', 'seperate']})]
    feeds = [
    (u'Charakter', u'https://czasgentlemanow.pl/category/charakter/feed/'),
    (u'Wizerunek', u'https://czasgentlemanow.pl/category/wizerunek/feed/'),
    (u'Relacje międzyludzkie', u'https://czasgentlemanow.pl/category/relacje-miedzyludzkie/feed/')]
