from calibre.web.feeds.news import BasicNewsRecipe class Swiat_Obrazu(BasicNewsRecipe): title = u'Świat Obrazu' __author__ = 'fenuks' description = u'Internetowy Dziennik o Fotografii i Wideo www.SwiatObrazu.pl to źródło informacji o technice fotografii i wideo, o sprzęcie najbardziej znanych i uznanych firm: Canon, Nikon, Sony, Hasselblad i wielu innych. Znajdziecie tu programy do obróbki zdjęć, forum foto i forum wideo i galerie zdjęć. Codziennie najświeższe informacje: aktualności, testy, poradniki, wywiady, felietony. Swiatobrazu.pl stale organizuje konkursy oraz warsztaty fotograficzne i wideo.' # noqa category = 'photography' masthead_url = 'http://www.swiatobrazu.pl/img/logo.jpg' cover_url = 'http://www.swiatobrazu.pl/img/logo.jpg' language = 'pl' oldest_article = 7 max_articles_per_feed = 100 no_stylesheets = True remove_javascript = True use_embedded_content = False feeds = [(u'Wszystko', u'http://www.swiatobrazu.pl/rss')] def print_version(self, url): return url + ',drukuj' def image_url_processor(self, baseurl, url): if 'http://' not in url and 'https://' not in url: return 'http://www.swiatobrazu.pl' + url[5:] else: return url