__license__ = 'GPL v3'
__copyright__ = '2012, Peter Grungi <p dot grungi at gmail dot com>'

from calibre.web.feeds.news import BasicNewsRecipe


class LivingStonesPastorsBlog(BasicNewsRecipe):
    title = u'Living Stones Pastors Blog'
    __author__ = 'Peter Grungi'
    language = 'en'

    oldest_article = 90
    max_articles_per_feed = 10
    auto_cleanup = True
    cover_url = 'http://blogs.livingstonesreno.com/wp-content/uploads/2011/08/blogBGRD_norepeat.jpg'
    masthead_url = 'http://www.livingstonesreno.com/podcast/LSpodcastnew.jpg'
    publisher = 'Living Stones Church of Reno, NV'
    language = 'en'
    author = 'Living Stones Church of Reno, NV'

    feeds = [
        (u'LS Blog', u'http://blogs.livingstonesreno.com/feed?utm_source=calibre&utm_medium=rss')]

    def full_version(self, url):
        import re
        newurl = re.sub(r'\?.*', '', url)
        return newurl
