from calibre.web.feeds.news import BasicNewsRecipe


class JakartaGlobe(BasicNewsRecipe):
    title = u'Jakarta Globe'
    oldest_article = 3
    max_articles_per_feed = 100

    feeds = [
        (u'News', u'http://www.thejakartaglobe.com/news/feed/'),
        (u'Business', u'http://www.thejakartaglobe.com/business/feed/'),
        (u'Opinion', u'http://www.thejakartaglobe.com/opinion/feed/'),
        (u'Count me in', u'http://www.thejakartaglobe.com/count-me-in/feed/'),
        (u'International', u'http://www.thejakartaglobe.com/international/feed/'),
        (u'Sports', u'http://www.thejakartaglobe.com/sports/feed/'),
    ]
    __author__ = 'rty'
    pubisher = 'JakartaGlobe.com'
    description = 'JakartaGlobe, Indonesia, Newspaper'
    category = 'News, Indonesia'

    remove_javascript = True
    use_embedded_content = False
    no_stylesheets = True
    auto_cleanup = True
    language = 'en_ID'
    encoding = 'utf-8'
    conversion_options = {'linearize_tables': True}
    masthead_url = 'http://www.thejakartaglobe.com/pages/2010/images/jak-globe-logo.jpg'
