
__license__ = 'GPL v3'
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
'''
luminous-landscape.com
'''

from calibre.web.feeds.news import BasicNewsRecipe


class theluminouslandscape(BasicNewsRecipe):
    title = 'The Luminous Landscape'
    __author__ = 'Darko Miletic'
    description = 'A photography news and information website in the form of a weblog with multiple authors who write on a variety of photography and art-photography related issues.'  # noqa
    publisher = 'The Luminous Landscape '
    category = 'news, blog, photograph, international'
    oldest_article = 15
    max_articles_per_feed = 100
    no_stylesheets = True
    remove_empty_feeds = True
    use_embedded_content = True
    encoding = 'cp1252'
    language = 'en'

    conversion_options = {
        'comment': description, 'tags': category, 'publisher': publisher, 'language': language
    }

    feeds = [
        (u"What's new", u'http://www.luminous-landscape.com/whatsnew/rssfeed.php')]
    remove_tags = [dict(name=['object', 'link', 'iframe'])]

    def preprocess_html(self, soup):
        return self.adeify_images(soup)
