Debian Codegraph @

recipes/swiat_obrazu.recipe

raw
1 from calibre.web.feeds.news import BasicNewsRecipe
2
3
4 class Swiat_Obrazu(BasicNewsRecipe):
5 title = 'Świat Obrazu'
6 __author__ = 'fenuks'
7 description = '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: E501
8 category = 'photography'
9 masthead_url = 'http://www.swiatobrazu.pl/img/logo.jpg'
10 cover_url = 'http://www.swiatobrazu.pl/img/logo.jpg'
11 language = 'pl'
12 oldest_article = 7
13 max_articles_per_feed = 100
14 no_stylesheets = True
15 remove_javascript = True
16 use_embedded_content = False
17 feeds = [('Wszystko', 'http://www.swiatobrazu.pl/rss')]
18
19 def print_version(self, url):
20 return url + ',drukuj'
21
22 def image_url_processor(self, baseurl, url):
23 if 'http://' not in url and 'https://' not in url:
24 return 'http://www.swiatobrazu.pl' + url[5:]
25 else:
26 return url