mainly indentation

This commit is contained in:
Tomasz Długosz 2013-03-05 00:12:57 +01:00
parent 37c9111b36
commit b201c488e5
3 changed files with 6 additions and 9 deletions

View File

@ -60,7 +60,7 @@ class FocusRecipe(BasicNewsRecipe):
] ]
def print_version(self, url): def print_version(self, url):
if url.count ('money.pl.feedsportal.com'): if url.count ('money.pl.feedsportal.com'):
u = url.find('0Cartykul0C') u = url.find('0Cartykul0C')
u = 'http://www.m.money.pl/wiadomosci/artykul/' + url[u + 21:] u = 'http://www.m.money.pl/wiadomosci/artykul/' + url[u + 21:]
u = u.replace('0C', '/') u = u.replace('0C', '/')
@ -71,6 +71,6 @@ class FocusRecipe(BasicNewsRecipe):
u = u.replace ('0B','.') u = u.replace ('0B','.')
u = u.replace (',0,',',-1,') u = u.replace (',0,',',-1,')
u = u.replace('0Tutm0Isource0Frss0Gutm0Imedium0Frss0Gutm0Icampaign0Frss/story01.htm', '') u = u.replace('0Tutm0Isource0Frss0Gutm0Imedium0Frss0Gutm0Icampaign0Frss/story01.htm', '')
else: else:
u = url.replace('/nc/1','/do-druku/1') u = url.replace('/nc/1','/do-druku/1')
return u return u

View File

@ -44,6 +44,6 @@ class MyAppleRecipe(BasicNewsRecipe):
def preprocess_html(self, soup): def preprocess_html(self, soup):
for alink in soup.findAll('a'): for alink in soup.findAll('a'):
if alink.string is not None: if alink.string is not None:
tstr = alink.string tstr = alink.string
alink.replaceWith(tstr) alink.replaceWith(tstr)
return soup return soup

View File

@ -8,10 +8,7 @@ class SATKurier(BasicNewsRecipe):
title = u'SATKurier.pl' title = u'SATKurier.pl'
__author__ = 'Artur Stachecki <artur.stachecki@gmail.com>' __author__ = 'Artur Stachecki <artur.stachecki@gmail.com>'
language = 'pl' language = 'pl'
description = u'Największy i najstarszy serwis poświęcony\ description = u'Serwis poświęcony telewizji cyfrowej'
telewizji cyfrowej, przygotowywany przez wydawcę\
miesięcznika SAT Kurier. Bieżące wydarzenia\
z rynku mediów i nowych technologii.'
oldest_article = 7 oldest_article = 7
masthead_url = 'http://satkurier.pl/img/header_sk_logo.gif' masthead_url = 'http://satkurier.pl/img/header_sk_logo.gif'
max_articles_per_feed = 100 max_articles_per_feed = 100