fix indentation

This commit is contained in:
Tomasz Długosz 2013-03-05 00:06:55 +01:00
parent e0aac8018f
commit 37c9111b36
3 changed files with 17 additions and 21 deletions

View File

@ -49,8 +49,8 @@ class gw_krakow(BasicNewsRecipe):
feeds = [(u'Wiadomości', u'http://rss.gazeta.pl/pub/rss/krakow.xml')]
def skip_ad_pages(self, soup):
tag=soup.find(name='a', attrs={'class':'btn'})
if tag:
tag=soup.find(name='a', attrs={'class':'btn'})
if tag:
new_soup=self.index_to_soup(tag['href'], raw=True)
return new_soup
@ -95,8 +95,7 @@ class gw_krakow(BasicNewsRecipe):
rem.extract()
def preprocess_html(self, soup):
self.append_page(soup, soup.body)
if soup.find(id='container_gal'):
self.gallery_article(soup.body)
return soup
self.append_page(soup, soup.body)
if soup.find(id='container_gal'):
self.gallery_article(soup.body)
return soup

View File

@ -46,8 +46,8 @@ class gw_wawa(BasicNewsRecipe):
feeds = [(u'Wiadomości', u'http://rss.gazeta.pl/pub/rss/warszawa.xml')]
def skip_ad_pages(self, soup):
tag=soup.find(name='a', attrs={'class':'btn'})
if tag:
tag=soup.find(name='a', attrs={'class':'btn'})
if tag:
new_soup=self.index_to_soup(tag['href'], raw=True)
return new_soup
@ -92,8 +92,7 @@ class gw_wawa(BasicNewsRecipe):
rem.extract()
def preprocess_html(self, soup):
self.append_page(soup, soup.body)
if soup.find(id='container_gal'):
self.gallery_article(soup.body)
return soup
self.append_page(soup, soup.body)
if soup.find(id='container_gal'):
self.gallery_article(soup.body)
return soup

View File

@ -100,5 +100,3 @@ class GazetaPomorska(BasicNewsRecipe):
extra_css = '''h1 { font-size: 1.4em; }
h2 { font-size: 1.0em; }'''