diff --git a/recipes/konflikty_zbrojne.recipe b/recipes/konflikty_zbrojne.recipe index 4211093443..e8b28b49bf 100644 --- a/recipes/konflikty_zbrojne.recipe +++ b/recipes/konflikty_zbrojne.recipe @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- from calibre.web.feeds.news import BasicNewsRecipe +from calibre.ebooks.BeautifulSoup import BeautifulSoup class Konflikty(BasicNewsRecipe): title = u'Konflikty Zbrojne' @@ -13,11 +14,11 @@ class Konflikty(BasicNewsRecipe): no_stylesheets = True keep_only_tags=[dict(attrs={'class':['title1', 'image']}), dict(id='body')] - feeds = [(u'Aktualności', u'http://www.konflikty.pl/rss_aktualnosci_10.xml'), - (u'Artyku\u0142y', u'http://www.konflikty.pl/rss_artykuly_10.xml'), - (u'Historia', u'http://www.konflikty.pl/rss_historia_10.xml'), - (u'Militaria', u'http://www.konflikty.pl/rss_militaria_10.xml'), - (u'Relacje', u'http://www.konflikty.pl/rss_relacje_10.xml'), + feeds = [(u'Aktualności', u'http://www.konflikty.pl/rss_aktualnosci_10.xml'), + (u'Artyku\u0142y', u'http://www.konflikty.pl/rss_artykuly_10.xml'), + (u'Historia', u'http://www.konflikty.pl/rss_historia_10.xml'), + (u'Militaria', u'http://www.konflikty.pl/rss_militaria_10.xml'), + (u'Relacje', u'http://www.konflikty.pl/rss_relacje_10.xml'), (u'Recenzje', u'http://www.konflikty.pl/rss_recenzje_10.xml'), (u'Teksty źródłowe', u'http://www.konflikty.pl/rss_tekstyzrodlowe_10.xml')] @@ -29,4 +30,4 @@ class Konflikty(BasicNewsRecipe): image.name='div' pos = len(image.contents) image.insert(pos, BeautifulSoup('
'+image.img['alt']+'
')) - return soup \ No newline at end of file + return soup diff --git a/recipes/metro_news_nl.recipe b/recipes/metro_news_nl.recipe index 9fb41984db..d95f9bdfd7 100644 --- a/recipes/metro_news_nl.recipe +++ b/recipes/metro_news_nl.recipe @@ -78,7 +78,7 @@ class AdvancedUserRecipe1306097511(BasicNewsRecipe): div.column-3 module-title {border: 1px solid #aaa}\ div.article-box-fact div.subtitle, .article-box-fact.module-title, h2.subtitle {font-weight:bold}\ div.article-box-fact div.subtitle, hr.merryhr, .article-box-fact.module-title {color: #24763b}' - + preprocess_regexps = [ (re.compile(r'