From b40b006e4b2c38cd068f3731eb6aa81a7949f28a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 25 Apr 2012 19:19:54 +0530 Subject: [PATCH] Fix #985353 (Updated Metro Nieuws NL) --- recipes/metro_news_nl.recipe | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/metro_news_nl.recipe b/recipes/metro_news_nl.recipe index d95f9bdfd7..2ad09ded8d 100644 --- a/recipes/metro_news_nl.recipe +++ b/recipes/metro_news_nl.recipe @@ -27,6 +27,8 @@ from BeautifulSoup import BeautifulSoup Version 1.9.1 18-04-2012 removed some debug settings updated code to match new metro-layout + Version 1.9.2 14-04-2012 + updated code to match new metro-layout ''' class AdvancedUserRecipe1306097511(BasicNewsRecipe): @@ -250,7 +252,7 @@ class MerryProcess(BeautifulSoup): return self.myKiller.safeRemovePart(souparray, True) def removeUnwantedTagsByClass(self,soup): - self.removeArrayOfTags(soup.findAll("div", { "class" :re.compile('^(promo.*?|share-tools-top|share-tools-bottom|article-tools-below-title|metroCommentFormWrap|ad|share-tools|tools|header-links|related-links|padding-top-15|footer-[a-zA-Z0-9]+)$')})) + self.removeArrayOfTags(soup.findAll("div", { "class" :re.compile('^(promo.*?|share-tools-top|share-tools-bottom|article-tools-below-title|metroCommentFormWrap|ad|share-tools|tools|header-links|related-links|padding-top-15|footer-[a-zA-Z0-9]+|column-4-5)$')})) return soup def removeUnwantedTagsByID(self,soup):