from calibre.web.feeds.news import BasicNewsRecipe


class Ubuntu_pl(BasicNewsRecipe):
    title = u'UBUNTU.pl'
    __author__ = 'fenuks'
    description = 'Polskie forum użytkowników Ubuntu Linux. Projekty, porady i dyskusje, gotowe rozwiązania problemów.'
    masthead_url = 'http://ubuntu.pl/img/logo.jpg'
    cover_url = 'http://ubuntu.pl/img/logo.jpg'
    category = 'linux, IT'
    language = 'pl'
    no_stylesheets = True
    remove_empty_feeds = True
    oldest_article = 8
    max_articles_per_feed = 100
    extra_css = '#main {text-align:left;}'
    keep_only_tags = [dict(name='td', attrs={'class': 'teaser-node-mc'}), dict(name='h3', attrs={
        'class': 'entry-title'}), dict(name='div', attrs={'class': 'entry-content'})]
    remove_tags_after = [dict(name='div', attrs={'class': 'content'})]
    feeds = [('Czytelnia Ubuntu', 'http://feeds.feedburner.com/ubuntu-czytelnia'),
             (u'WikiGames', u'http://feeds.feedburner.com/WikiGames')]
