diff --git a/recipes/tanuki.recipe b/recipes/tanuki.recipe index fbcad64d20..cf85fbdd83 100644 --- a/recipes/tanuki.recipe +++ b/recipes/tanuki.recipe @@ -11,6 +11,7 @@ class tanuki(BasicNewsRecipe): language = 'pl' max_articles_per_feed = 100 encoding = 'utf-8' + autocleanup = True extra_css = 'ul {list-style: none; padding: 0; margin: 0;} .kadr{float: left;} .dwazdania {float: right;}' preprocess_regexps = [(re.compile(u'

', re.DOTALL), lambda match: ''), (re.compile( unicode(r'
Zobacz jak ocenili
'), re.DOTALL), lambda match: '')] @@ -42,15 +43,3 @@ class tanuki(BasicNewsRecipe): appendtag.insert(pos, pagetext) for r in appendtag.findAll(attrs={'class': 'nextarrow'}): r.extract() - - def preprocess_html(self, soup): - self.append_page(soup, soup.body) - for a in soup('a'): - if a.has_key('href') and 'http://' not in a['href'] and 'https://' not in a['href']: # noqa - if 'tanuki-anime' in soup.title.string.lower(): - a['href'] = 'http://anime.tanuki.pl' + a['href'] - elif 'tanuki-manga' in soup.title.string.lower(): - a['href'] = 'http://manga.tanuki.pl' + a['href'] - elif 'tanuki-czytelnia' in soup.title.string.lower(): - a['href'] = 'http://czytelnia.tanuki.pl' + a['href'] - return soup