diff --git a/recipes/hackernews.recipe b/recipes/hackernews.recipe index e7bf7d690a..ef6e367d40 100644 --- a/recipes/hackernews.recipe +++ b/recipes/hackernews.recipe @@ -92,7 +92,7 @@ class HNWithCommentsLink(BasicNewsRecipe): return u'' + title + u'' + body + '' def parse_feeds(self): - a = super(HNWithCommentsLinkAlt, self).parse_feeds() + a = super().parse_feeds() self.hn_articles = a[0].articles return a @@ -114,11 +114,6 @@ class HNWithCommentsLink(BasicNewsRecipe): else: content = self.get_readable_content(url) - article = 0 - for a in self.hn_articles: - if a.url == url: - article = a - # content = re.sub(r'\s*\s*$', '', content) + \ # article.summary + '' diff --git a/recipes/orfonline.recipe b/recipes/orfonline.recipe index dfa5662c7f..85035f4195 100644 --- a/recipes/orfonline.recipe +++ b/recipes/orfonline.recipe @@ -1,5 +1,6 @@ #!/usr/bin/env python from datetime import datetime, timedelta + from calibre.utils.date import parse_date from calibre.web.feeds.news import BasicNewsRecipe, classes diff --git a/recipes/salzburger_nachrichten.recipe b/recipes/salzburger_nachrichten.recipe index 73be932156..733a4aec98 100644 --- a/recipes/salzburger_nachrichten.recipe +++ b/recipes/salzburger_nachrichten.recipe @@ -2,6 +2,7 @@ # vim:fileencoding=utf-8 from calibre.web.feeds.news import BasicNewsRecipe + class SalzburgerNachrichten(BasicNewsRecipe): title = 'Salzburger Nachrichten' __author__ = 'İlker Melik Sıtkı' @@ -56,4 +57,4 @@ class SalzburgerNachrichten(BasicNewsRecipe): ('Briefe an die SN', 'https://www.sn.at/leserforum/xml/rss'), ('Veranstaltungen', 'https://www.sn.at/veranstaltungen/xml/rss'), ('Klimawandel', 'https://www.sn.at/panorama/klimawandel/xml/rss') - ] + ]