from calibre.web.feeds.news import BasicNewsRecipe


class nprmusic(BasicNewsRecipe):
    title = 'NPR Music Blogs'
    __author__ = 'cix3'
    timefmt = ' [%b %d, %Y]'
    language = 'en'

    oldest_article = 30
    max_articles_per_feed = 100
    no_stylesheets = True

    remove_tags = [dict(name='div', attrs={'id': ['logo', 'comments', 'related_objects', 'inset module',
                                                  'footer', 'strip_control', 'header', 'navigation']}), dict(name='hr'), dict(name='img')]

    feeds = [
        ('A Blog Supreme', 'http://www.npr.org/blogs/ablogsupreme/index.xml'),
        ('All Songs Considered', 'http://www.npr.org/blogs/allsongs/index.xml'),
        ('Monitor Mix', 'http://www.npr.org/blogs/monitormix/index.xml')]
