From 27532d232308530d17dace912ce8f6e25b8d16ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sun, 2 Feb 2014 01:00:49 +0100 Subject: [PATCH] Gosc Niedzielny: get articles from current issue instead of the previous --- recipes/gosc_niedzielny.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/gosc_niedzielny.recipe b/recipes/gosc_niedzielny.recipe index 7ff2d48f84..a7c5ef1ab1 100644 --- a/recipes/gosc_niedzielny.recipe +++ b/recipes/gosc_niedzielny.recipe @@ -13,7 +13,7 @@ class GN(BasicNewsRecipe): __author__ = 'Piotr Kontek, Tomasz Długosz' title = u'Gość Niedzielny' - description = 'Ogólnopolski tygodnik katolicki - fragmenty artykułów z poprzedniego numeru' + description = 'Ogólnopolski tygodnik katolicki - fragmenty artykułów z aktualnego numeru' encoding = 'utf-8' no_stylesheets = True language = 'pl' @@ -24,7 +24,7 @@ class GN(BasicNewsRecipe): doc = html.fromstring(raw) page = doc.xpath('//div[@class="c"]//div[@class="search-result"]/div[1]/div[2]/h1//a/@href') - return page[1] + return page[0] def parse_index(self): soup = self.index_to_soup('http://gosc.pl' + self.find_last_issue())