# vim:fileencoding=UTF-8
from __future__ import unicode_literals

from calibre.web.feeds.news import BasicNewsRecipe


class Dingoo(BasicNewsRecipe):
    language = 'ru'
    __author__ = 'bug_me_not'
    title = u'Dingoo A320. \u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441'
    description = 'Портативная игровая консоль Dingoo A320 и другие необычные гаджеты'
    publisher = 'Emulate.SU'
    category = 'console'
    cover_url = u'http://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Dingoo_A320_White.jpg/300px-Dingoo_A320_White.jpg'
    no_stylesheets = False
    remove_javascript = True

    oldest_article = 20
    max_articles_per_feed = 200

    feeds = [(u'A320', u'http://feeds.feedburner.com/ru_dingoo')]

    remove_tags_before = dict(name='div', attrs={'class': 'posttitle'})
    remove_tags_after = dict(name='div', attrs={'class': 'article'})
    remove_tags = [dict(name='iframe')]
